🎨

Colour Converter

Enter any HEX, RGB or HSL code and instantly convert between all three formats.

#F5C542

Tap any result to copy

HEX
#F5C542
Tap to copy
RGB
rgb(245, 197, 66)
Tap to copy
HSL
hsl(44, 90%, 61%)
Tap to copy
RGBA
rgba(245, 197, 66, 1)
Tap to copy
HSV
hsv(44, 73%, 96%)
Tap to copy
CMYK
cmyk(0%, 20%, 73%, 4%)
Tap to copy
Nearest name
gold
Tap to copy

🔎 Describe a colour

Describe it in your own words — like “a muted dusty rose”, “deep ocean teal” or “warm pastel peach” — and I’ll point you to it.

Text contrast on this colour
Aa
Aa
Shades & tints
Recent colours
Colours you use will appear here.

About the Colour Converter

The colour converter converts between HEX, RGB and HSL colour code formats. Enter any format and see all three updated simultaneously with a colour preview.

How to use the Colour Converter

1
Enter a colour code — in HEX, RGB or HSL
2
All formats update instantly
3
See the colour preview

Understanding colour formats

Each format describes the same colour a different way. Here's when to reach for each.

HEX

A six-digit code like #F5C542 used across the web and design tools. Compact and universal — the default for CSS and most apps.

RGB

Red, green and blue from 0–255, e.g. rgb(245, 197, 66). It maps to how screens emit light, and pairs with an alpha value (RGBA) for transparency.

HSL & HSV

Hue, saturation and lightness (or value) describe colour the way people think — pick a hue, then adjust how vivid and how light it is. Ideal for building shades and tints.

CMYK

Cyan, magenta, yellow and key (black) percentages used for print. Screens are additive (RGB); print is subtractive (CMYK), so check CMYK before printing.

Which should I use?

HEX or RGB for web and screens, HSL/HSV when tweaking shades, and CMYK for print. This tool keeps every format in sync so you never convert by hand.

HEX, RGB or HSL — which to use

Each format suits a different job. HEX codes like #3B82F6 are compact and the usual choice for CSS and design hand-off. RGB describes the same colour as red, green and blue channels, which maps directly to how a screen lights up. HSL — hue, saturation and lightness — is the easiest to adjust by hand, because you can nudge a single value to lighten or mute a colour without guessing at channels.

Building a palette

HSL makes palette work straightforward: keep the hue fixed and change the lightness to create tints and shades of one colour, or rotate the hue in even steps for a balanced set. Whatever format you design in, check the contrast between text and background colours so the result stays readable.

Frequently Asked Questions

A 6-digit hex value starting with #. #ff0000 = red, #ffffff = white.
Hue (0–360°), Saturation (%), Lightness (%). Easier to adjust intuitively than HEX or RGB.
All three work in modern CSS. HSL is often preferred for generating colour variations.

More tools