Color Converter

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

Type a code in any format, or a CSS color name
Adjust
Color Formats
HEX
RGB
HSL
HSV
HWB
CMYK
LAB
OKLCH
CSS name
Quick colors:
#4287f5
Type, slide or pick a color: every format updates at once

How to Use the Color Converter

  1. Type a color in any format, such as #FF0000, rgb(255, 0, 0), hsl(0, 100%, 50%), cmyk(0%, 100%, 100%, 0%) or a name like red
  2. The color will automatically convert to all other formats
  3. Drag the sliders to fine-tune red, green and blue, or hue, saturation and lightness
  4. Upload a photo to pick a color from it
  5. Use the copy buttons to copy individual format values
  6. Use "Copy All Formats" to copy all color values at once

Color Converter: HEX, RGB, HSL, CMYK, LAB and More

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.

  • Free, no watermark
  • No sign-up
  • Photos never leave your device
  • Works on phone and computer

How to Convert a Color

  1. 1 Enter a Color

    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.

  2. 2 Adjust It

    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.

  3. 3 Copy the Code

    Click the copy button next to any format, or Copy All Formats for the whole list.

Picking the color of an open tin of paint

Pick a Color From a Photo

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.

The RGB, HSL and HSV sliders for one color

RGB, HSL and HSV Sliders

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.

Color Converter at a Glance

FormatsHEX, RGB, HSL, HSV, HWB, CMYK, CIE LAB, OKLCH and the 148 CSS color names
InputAny of these formats, in any row, or a pixel from a photo
CopyOne format, or all of them at once
PriceFree, with no watermark and no sign-up
Photo formatsJPEG, PNG, WebP, GIF, HEIC and other images your browser opens
Where it runsIn your browser; nothing is uploaded

Updated November 25, 2026

Frequently Asked Questions

What color formats does the converter support?

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.

How accurate are the color conversions?

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.

Can I use color names instead of codes?

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.

What is the difference between HSL and HSV?

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.

How do I copy colors for use in my projects?

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.

Can I generate random colors for inspiration?

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.

Convert Your Color