Color Converter

Convert between HEX, RGB, HSL, and more

FreeNo sign-upDeveloper Tools →

Color Converter takes a HEX colour and shows it in the other notations developers need: RGB, RGBA, HSL, HSLA, HSV and a ready-to-paste CSS custom property. Type a hex code or use the colour picker, and every format updates with its own copy button.

It also reports the contrast ratio of the colour against white and against black, with a marker showing whether each pairing reaches the 4.5:1 level WCAG AA requires for body text. That tells you at once whether the colour can carry white or black text.

Advertisement

How to use Color Converter

1

Enter or pick a colour

Type a hex value or use the picker.

2

Read the formats

All notations are listed together.

3

Copy what you need

Click copy beside any value.

Use Cases

  • Translating a brand colour into CSS formats
  • Checking whether white text is readable on a button colour
  • Getting HSL values to build tints and shades

Frequently Asked Questions