Precision Color Space Converter: HEX, RGB, HSL & CSS
Translate colors between design systems, Figma tokens, and CSS stylesheets with zero color loss.
A designer hands over a mockup with a brand color in HEX, but the stylesheet you are editing uses hsl() so lighter and darker variants are easy to tweak. Or a print shop asks for CMYK values and all you have is a screenshot colour from a browser. Developers also reach for a converter when a design token says rgb(59, 130, 246) and the CSS framework config wants a six-digit code. Having every notation side by side saves you from doing channel arithmetic by hand and from guessing at rounding.
Type or paste a HEX code into the colour field, with or without the leading hash. Three-digit shorthand such as #0af is expanded to #00aaff for you. You can also click the colour swatch to pick visually. The tool then lists the HEX code, RGB, RGBA at full opacity, HSL and CMYK in separate rows, each with its own Copy button, so you can grab exactly the format your file needs. Below them you will see contrast figures measured against pure white and pure black.
Input is read as HEX, so if you start from an RGB or HSL value you must convert it to HEX first or pick it visually. An invalid or incomplete code does not raise an error; the tool quietly falls back to its default indigo, so check that the swatch matches what you meant. The CMYK row is a plain mathematical conversion from RGB, so a professional printer using an ICC profile may see slightly different values. HSL numbers are rounded to whole degrees and percentages.
Worked example with #3b82f6. The channels are 3b, 82 and f6, which are 59, 130 and 246 in decimal, so the RGB row reads rgb(59, 130, 246). Blue is the largest channel, so the hue lands near 217 degrees, with saturation about 91 percent and lightness about 60 percent. When you want a hover state, copy the HSL value and lower the lightness by a few points; the hue stays put, which keeps the family recognisable. Use the white and black contrast figures to decide which text colour sits better on that blue.
Key Highlights:
- Simultaneous live conversion
- Interactive visual color picker
- One-click CSS copy for all formats

