Convert colors between HEX, RGB, HSL, HSV, HWB, CMYK, LAB and OKLCH, or pick one from a photo
Drop a file here,
or use Ctrl+V / Cmd+V to paste
The Color Converter turns one color into every common format at once: HEX, RGB, HSL, HSV, HWB, CMYK, CIE LAB, OKLCH and its CSS color name. Type or paste a code in any of them, use the sliders or the color picker, or pick a color from a photo, then copy the code you need. It runs in your browser and is free, with no sign-up.
Type or paste a code in any format, such as #4287F5, rgb(66, 135, 245), hsl(217 90% 61%) or a CSS name like tomato. Every row takes any format.
Fine-tune the color with the RGB, HSL or HSV sliders, try one of 16 quick colors, press Random, or pick a pixel from a photo.
Click the copy button next to any format, or Copy All Formats for the whole list.
Switch to the photo and click any pixel: a loupe shows the pixels around it, and the arrow keys move one pixel at a time. The color is read from your photo at its full size.
Each slider shows the colors it will give as you move it. HSL and HSV keep their hue when a color turns grey, so you can come back from white or black without losing it. The tool remembers which sliders you used last.
| Formats | HEX, RGB, HSL, HSV, HWB, CMYK, CIE LAB, OKLCH and the 148 CSS color names |
|---|---|
| Input | Any of these formats, in any row, or a pixel from a photo |
| Copy | One format, or all of them at once |
| Price | Free, with no watermark and no sign-up |
| Photo formats | JPEG, PNG, WebP, GIF, HEIC and other images your browser opens |
| Where it runs | In your browser; nothing is uploaded |
Updated November 25, 2026
HEX, RGB, HSL, HSV, HWB, CMYK, CIE LAB and OKLCH, plus the 148 CSS color names. Type a code the way you would write it: #F00, #FF0000, rgb(255 0 0), rgb(100% 0% 0%), hsl(0, 100%, 50%), cmyk(0%, 100%, 100%, 0%), oklch(62.8% 0.258 29.2) or red. A code with transparency, such as #FF000080 or rgba(255, 0, 0, 0.5), is read without its alpha.
Every conversion goes through the exact sRGB color. HEX and RGB are exact, and LAB and OKLCH are written with enough decimals to read back to the same color. HSL, HSV, HWB and CMYK are shown in whole numbers, as most apps show them, so typing one back can land a few steps away on a 0-255 channel. CMYK is the plain formula with no printer profile: for print work, convert with your printer's profile.
Yes. Type any of the 148 CSS color names, such as red, rebeccapurple or lightseagreen; capitals and spaces do not matter. For any other color the converter shows the nearest CSS name, and one tap switches to it.
Both describe a color by its hue and saturation. HSL adds lightness, where 100% is always white, which makes tints and shades easy to reason about and is the form CSS uses. HSV adds value, where 100% is the brightest version of the color, the way most color pickers in design apps work.
Click the "Copy" button next to any format to copy that specific value, or use "Copy All Formats" to copy all color values at once. The copied values are ready to paste directly into CSS, design tools, or code editors.
Yes. Press "Random Color" for a new color, not too grey, dark or light, then fine-tune it with the sliders. Every format follows as you go.