Color Converter

HEX, RGB and HSL — edit any field and the others follow. Pick from the swatch or type values, then copy in CSS format.

Runs locally in your browser
HEX
RGB
HSL

How to use Color Converter

  1. Type or paste a color in HEX, RGB or HSL.
  2. Or use the color picker to choose one visually.
  3. Copy the converted value in CSS-ready format.

Common use cases

Good to know

What you can do next

FAQ

When should I use HSL over HEX?

HSL separates hue, saturation and lightness — adjusting a shade (e.g. making a hover state 10% lighter) is a one-number change instead of hex math.

Are the conversions exact?

HEX and RGB are 1:1. HSL is mathematically equivalent but rounds to whole degrees/percent — round-tripping can shift a color by at most 1/255 per channel.

Does the copy button give CSS-ready values?

Yes: #3B62F6, rgb(59, 98, 246) or hsl(228, 85%, 60%) — paste straight into your stylesheet.

X