OutilSimple

Colour converter

Convert a colour between HEX, RGB and HSL and check how readable text is on it.

Processed in your browser

Enter a HEX value to get the RGB and HSL equivalents along with the readability of text on this colour.

Converted values

HEX

#1A6FC4

RGB

rgb(26, 111, 196)

HSL

hsl(210, 77%, 44%)

Text readability

White text

5.1:1 · Good (AA)

Black text

4.11:1 · Large text only (AA-large)

The WCAG ratio compares the luminance of the text and background. A ratio of at least 4.5:1 is recommended for body text.

How to use this tool

Enter a HEX value (with or without #) to get the RGB and HSL equivalents, a preview of the colour, and how readable text is on that background.

How does it work?

HEX and RGB describe a colour with its red, green and blue components. HSL describes it by hue, saturation and lightness. The WCAG contrast ratio compares the luminance of the text and the background: a ratio of at least 4.5:1 is recommended for body text.

Frequently asked questions

Related tools

Everyday tools

CSV / JSON converter

Convert a CSV file to JSON or JSON to CSV, with delimiter detection and quote handling.

Open tool
Text tools

Word counter

Count words, characters, sentences, and paragraphs in your text.

Open tool
Everyday tools

QR code generator

Create a QR code from a link, text, email address, phone number, or Wi-Fi details.

Open tool