Colour converter
Paste a colour in any notation — HEX, rgb(), hsl(), oklch(), oklab(), cmyk() or a CSS name — and get every other one. Each value is checked by converting it back: it names the same colour.
- HEX · RGB · HSL · HWB
- OKLCH · OKLab
- CMYK · Pantone
- Free, no sign-in
Every format
- HEX
#3B82F6 - RGBCSS Color 4
rgb(59 130 246) - RGBlegacy syntax
rgb(59, 130, 246) - HSL
hsl(217.2 91.2% 59.8%) - HWB
hwb(217.2 23.1% 3.5%) - HSV / HSBFigma, Photoshop
hsv(217.2 76% 96.5%) - OKLCH
oklch(62.3% 0.188 259.8) - OKLab
oklab(62.3% -0.033 -0.185) - CMYKno ICC profile
cmyk(76% 47.2% 0% 3.5%) - CSS namenearest · ΔE 8.5
≈ dodgerblue - Pantonenearest Solid Coated · ΔE 19
≈ PANTONE 300 C
Adjust in OKLCH
Lightness, chroma and hue in a perceptual space: one slider step looks the same for every hue.
Scale & harmonies
Built in OKLCH. Click a swatch to make it the current colour — every format updates.
Scale 50–950One notation, every other
Step 1. Pick or enter a colour
With the picker, from the screen, or by pasting any notation — HEX, rgb(), hsl(), oklch(), cmyk(), a CSS name.
Step 2. Instant conversion
RGB, HSL, HWB, HSV, OKLCH, OKLab, CMYK and the nearest CSS name and Pantone appear at once.
Step 3. Copy any format
A button next to every row — or all formats at once as one block.
Step 4. Use it in code
Values are exact: each converts back to the same HEX, no off-by-one drift.
About colour formats
What is a HEX color code and why is it so popular?
What's the difference between RGB and HEX?
When should I use HSL instead of RGB?
What is OKLCH and why should I use it?
What is CMYK and when do I need it?
How accurate is the Pantone color matching?
What's the best color format for CSS custom properties?
--primary: oklch(60% 0.15 260); then use relative color syntax for variations. Avoid storing as HEX since you can't manipulate individual channels directly in CSS.Which color formats can I use in CSS today?
Related tools
Other UIXColors tools that pair well with the Color Converter.
- 01 · Tool
WCAG Contrast Checker
Check color contrast ratios for WCAG 2.1 AA & AAA compliance. Test text and background combinations for accessibility. Instant feedback, free.
- 02 · Tool
Image Color Palette Extractor
Extract dominant color palettes from any image. Upload PNG, JPG, WebP and get HEX, RGB, OKLCH values. Free tool for designers and brands.
- 03 · Tool
CSS Gradient Maker
Create beautiful linear, radial and conic CSS gradients with a live preview. Tweak stops, angles and positions, copy the CSS. Free online tool.