Skip to content

Web & Media tool

HEX, RGB & HSL Colour Converter

Convert colour formats and check WCAG contrast for accessible text.

Runs in your browser. Nothing is uploaded.

HEX#1478C7
RGBrgb(20, 120, 199)
HSLhsl(206, 82%, 43%)

Text contrast (WCAG)

Aa White text
4.62:1 · AA
Aa Black text
4.54:1 · AA

About the Colour Converter & Contrast Checker

Design tools, CSS and brand guidelines all use different colour formats. Enter a colour in any of them (pick it visually, type a HEX code, or adjust RGB and HSL values) and get every format with a one-click copy.

The WCAG contrast panel tells you whether white or black text is readable on your colour (AA needs 4.5:1 for body text, AAA needs 7:1), and a tints-and-shades strip helps you build a palette around it.

How to use it

  1. Pick or type a colour.
  2. Copy the HEX, RGB or HSL value.
  3. Check the contrast ratios for text.
  4. Click a swatch to explore tints and shades.

Frequently asked questions

How do I convert HEX to RGB?

Split the six HEX digits into pairs (RR GG BB) and convert each from base 16 to decimal. #1478C7 → R 20, G 120, B 199.

What contrast ratio is accessible?

WCAG AA requires 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 and 4.5:1 respectively.

What is HSL?

Hue, Saturation, Lightness: a more human-friendly way to describe colour, handy for creating lighter and darker variants.

<let's talk/>

Want this built into your own software?

We build custom tools, calculators and automation around your business process. Tell us what you need.