Color converter
Type a color in any CSS notation or pick it, and see it as HEX, RGB, HSL, HWB, OKLCH, OKLAB and CMYK. Generate the 50-950 shade scale and color harmonies, ready to copy or export as CSS variables and JSON.
Your data stays on your computer. Files are processed in your browser and are never uploaded.
HEX (3, 4, 6 or 8 digits), rgb(), hsl(), hwb(), oklch(), oklab() or a CSS name such as rebeccapurple.
Representations
- HEX
- #3b82f6
- RGB
- rgb(59 130 246)
- HSL
- hsl(217 91% 60%)
- HWB
- hwb(217 23% 4%)
- OKLCH
- oklch(62.31% 0.188 259.81)
- OKLAB
- oklab(62.31% -0.0332 -0.1851)
- CMYK
- cmyk(76% 47% 0% 4%)
CMYK is only indicative: it is a simple formula with no print color profile, and will not match a print shop's.
Shade scale
From 50 (very light) to 950 (almost black), same hue in OKLCH. The highlighted step is your color. Press a swatch to copy its HEX.
Matching colors
Complementary
Analogous
Triadic
Export the scale
:root {
--color-50: #f2f7ff;
--color-100: #e0ecff;
--color-200: #c4dbff;
--color-300: #9dc2ff;
--color-400: #6fa6ff;
--color-500: #3b82f6;
--color-600: #2269db;
--color-700: #0e51b6;
--color-800: #053c8e;
--color-900: #042c6a;
--color-950: #001a49;
}Why OKLCH
In OKLCH perceived lightness is uniform: changing only L gives balanced tints and shades, which HSL does not.
Out of gamut
Some OKLCH colors do not exist in sRGB. Like CSS does, the chroma is reduced until it fits, keeping lightness and hue, and the tool tells you.
Where the data goes
Everything happens on this page. The share link holds only the color and the options, in the part after the # that the server never receives.