Color converter tools

Pick the converter for your two formats below: each one turns HEX, RGB, HSL, CMYK or OKLCH colors into the other format instantly, in your browser, with copy-ready CSS.

Convert between HEX, RGB, RGBA, HSL, CMYK and OKLCH without leaving the browser. Each tool validates your input, previews the color and copies CSS-ready values.

Choose a color converter

How the color formats differ

Each format encodes the same color in a different way. The table below shows the same orange in every format and what each one is best for.

FormatExampleBest for
HEX#FF6600compact codes in CSS and design tools
RGBrgb(255 102 0)screen channels and opacity
HSLhsl(24 100% 50%)tweaking lightness while keeping the hue
HSV / HSBhsv(221, 84%, 92%)matching color pickers in Figma, Photoshop and Procreate
CMYKcmyk(0%, 60%, 100%, 0%)print work
OKLCHoklch(69.6% 0.204 43.5)perceptually even palettes in modern CSS

Color converter FAQs

Which color formats should I use in CSS?

HEX, RGB, HSL and OKLCH are all valid CSS color formats. HEX is compact, RGB maps directly to screen channels, HSL makes it easier to adjust one property such as lightness without changing the hue, and OKLCH uses perceptual lightness so equal values look equally bright.

Do these converters keep transparency?

Yes. Paste an eight-digit HEX or an rgba()/hsla() value with an alpha channel and each converter keeps the alpha in its HEX, RGB and HSL output.

Are these color converters free?

Yes. Every converter runs in your browser, needs no sign-up and produces CSS-ready values you can copy with one click.

What is the difference between RGB and CMYK?

RGB mixes red, green and blue light for screens, while CMYK mixes cyan, magenta, yellow and black ink for print. Convert to CMYK only for printed work; keep HEX, RGB, HSL or OKLCH for websites.

Need a matching accent or a lighter version of a color? Use the Color wheel and complementary colors or the Tints and shades of any HEX.

More color tools

Image tools

CSS generators

Image & SVG tools

Typography & units

More free tools

All free tools