Color Converter (HEX, RGB, HSL, CMYK, OKLCH)
NEWFree color converter: paste HEX, RGB, HSL, HSV, CMYK, Lab, LCH, OKLCH or a CSS name and get every other format at once, with picker and alpha.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
Detected input: HEX
Nearest CSS name:dodgerblue(#1e90ff, ΔE 3.6)
- HEX
- #3b82f6
- RGB
- rgb(59, 130, 246)
- HSL
- hsl(217.2, 91.2%, 59.8%)
- HSV / HSB
- hsv(217.2, 76%, 96.5%)
- CMYK
- cmyk(76%, 47.2%, 0%, 3.5%)
- CIE Lab
- lab(54.62% 8.76 -65.79)
- CIE LCH
- lch(54.62% 66.37 277.59)
- OKLab
- oklab(62.31% -0.0332 -0.1851)
- OKLCH
- oklch(62.31% 0.188 259.81)
- HEX + alpha
- #3b82f6ff
Lab and LCH use the D50 white point like CSS lab()/lch(). CMYK is a simple device-independent formula, not an ICC print profile. Next: check text contrast or build a CSS gradient.
Quick Examples
Typical inputs and the results this tool produces.
Overview
This color converter reads a colour in almost any notation a designer or developer meets — 3, 4, 6 or 8 digit HEX, rgb() and rgba(), hsl(), HSV / HSB, CMYK, CIE Lab and LCH, OKLab, OKLCH or one of the 148 CSS named colours — and shows all the other formats side by side, each with its own copy button.
It is handy when a brand guide gives CMYK or HEX but your stylesheet wants hsl() or modern oklch(), when you move a palette from Figma to CSS, or when you want the nearest CSS colour name for a value. Alpha is kept across formats, and a gamut note tells you when a Lab or OKLCH colour is too vivid for sRGB screens.
Conversions follow the CSS Color Module Level 4 formulas (Lab and LCH with the D50 white point) and run entirely in your browser.
Why use this tool?
- Every format at once — no dropdown juggling
- Modern CSS spaces: Lab, LCH, OKLab, OKLCH
- Alpha / transparency handled in every output
- Finds the nearest CSS colour name
- Private: runs locally in your browser
Features
Ten formats
HEX, RGB, HSL, HSV, CMYK, CIE Lab, CIE LCH, OKLab and OKLCH plus CSS names, all updated as you type.
Smart input
Accepts comma or space syntax, percentages, deg / rad / turn hues and the CSS "/ alpha" form.
Picker and swatch
Pick a colour visually and see a live swatch over a checkerboard that shows transparency.
Nearest named colour
Matches against all 148 CSS keywords using perceptual OKLab distance.
Gamut warning
Flags Lab, LCH and OKLCH colours that fall outside sRGB and explains which values are clipped.
One-click copy
Each row has its own Copy button, ready to paste into CSS, Tailwind config or design tools.
How to Use
Enter a colour
Type or paste any colour value, or use the Picker.
Adjust alpha
Drag the Alpha slider to add transparency if you need it.
Read every format
All conversions and the nearest CSS name appear instantly.
Copy
Click Copy next to the format you want to use.