Convert colors: HEX, RGB, HSL, OKLCH
Convert a CSS color between HEX, RGB, HSL, HWB, OKLCH and named colors, with a color picker and its contrast on white and black.
Convert a CSS color between HEX, RGB, HSL, HWB, OKLCH and named colors, with a color picker and its contrast on white and black.
Runs entirely in your browser: nothing you type is sent or stored.
| Notation | Example | What it describes |
|---|---|---|
#3b82f6 | ||
rgb(59, 130, 246) | ||
hsl(217, 91%, 60%) | ||
hwb(217 23% 4%) | ||
oklch(62.3% 0.188 259.8) | ||
tomato |
rgba(59, 130, 246, 0.5), and the modern one with spaces and a slash before the alpha, rgb(59 130 246 / 50%). Hues may be given in deg, rad, grad or turn.
#3b82f680 is 50% opaque, since 80 is 128 out of 255. The short form #rgba works too. The swatch shows a checkerboard through a translucent color.
ff = 100%, cc = 80%, 99 = 60%, 80 = 50%, 66 = 40%, 33 = 20%, 00 = 0%.transparent).