Loadingโฆ
Loadingโฆ
Convert any colour between HEX, RGB, HSL, HSV, HWB, CMYK, Lab, LCH, OKLab and OKLCH, with the nearest CSS colour name.
Also covers: HEX to RGB ยท RGB to HEX ยท HEX to HSL ยท RGB to CMYK ยท HEX/RGB/HSL converter
Accepts HEX (with or without #), rgb(), hsl(), hwb(), lab(), lch(), oklab(), oklch(), CSS colour names, cmyk(โฆ) and plain โR, G, Bโ. Colours outside the sRGB range are brought into it keeping their hue.
Every format
#ff6a2c, rgb(), hsl(), oklch(), a CSS name, or R, G, B values โ every other format appears at once.
Split the six digits into three pairs and read each as a hexadecimal number: #FF6A2C = 255, 106, 44.
It's the simple mathematical conversion. Real print colours depend on the paper, ink and ICC profile, so ask your printer for a profile-based conversion for critical work.
A perceptual colour space: L is lightness, C chroma (colourfulness) and H hue. Equal changes look equally large to the eye, which makes it good for building palettes.
Wide-gamut colours (e.g. a very vivid oklch()) are brought into sRGB by reducing chroma while keeping hue and lightness.
Colour
Pick any colour with a saturation/brightness square, from anywhere on your screen (EyeDropper), or from a photo โ and get it in HEX, RGB, HSL, OKLCH and more.
Palettes
Build a palette from one colour โ a 50โ950 shade scale or complementary, analogous, triadic and other harmonies, worked out in OKLCH โ and export CSS, Tailwind, SCSS or JSON.
Colour
Pull the main colours out of a photo or logo, with how much of the image each covers, and export them as CSS variables or JSON.
Accessibility
Check text and background colours against WCAG 2.2 AA and AAA, see the exact contrast ratio, and get the closest colour that passes.
CSS
Design linear, radial and conic CSS gradients with any number of colour stops and vivid OKLCH blending, and copy the CSS.
CSS
Layer soft, hard, inset and glowing box-shadows with a live preview, and copy the CSS.