How do I use the colour converter (HEX, RGB, HSL)?
- Enter a colour such as #12d18e or rgb(18, 209, 142).
- Press Convert colour.
- Copy the format you need into your CSS or design tool.
Colour converter (HEX, RGB, HSL): frequently asked questions
Which colour format should I use in CSS?
HEX is the most common. HSL is easier when you want lighter or darker shades of the same colour.
What is a 3-digit hex colour?
A shorthand where each digit is doubled, so #0af is the same as #00aaff.
What colour formats can I convert?
HEX, RGB, HSL and others used in CSS and design tools.
What is the difference between RGB and HSL?
RGB mixes red, green and blue light; HSL describes hue, saturation and lightness, which is easier to adjust by hand.
What is a HEX colour?
A six-digit hexadecimal code like #00C389 representing red, green and blue values.
What do eight-digit HEX codes mean?
The last two digits set transparency.
Do CMYK values match exactly?
Screen-to-print conversions are approximate; ask your printer for a proof.
What is OKLCH?
A modern colour space with more even perceived lightness, supported in current browsers.
How do I keep brand colours consistent?
Define them once as design tokens and reuse them in Figma and CSS.
Can I check contrast too?
Yes, with the contrast checker.