CricBlink
  1. Home
  2. Converters
  3. Color Converter (HEX, RGB, HSL)

Color Converter (HEX, RGB, HSL)

Free colour converter between HEX, RGB and HSL with a colour picker, live swatch, copy buttons and WCAG contrast check against white and black.

FreeRuns in your browserNo sign-up

Runs in your browser. Nothing you enter is uploaded.

Advertisement

How to use the Color Converter (HEX, RGB, HSL)

  1. Pick a colour or type a HEX, RGB or HSL value.
  2. The other formats update instantly.
  3. Copy the format you need.
  4. Check the contrast ratio for readable text.

Colour formats explained

HEX writes red, green and blue as three two-digit hexadecimal numbers (#0a6b47). RGB gives the same channels as 0 to 255 values. HSL describes hue (0 to 360°), saturation and lightness, which is easier for making lighter or darker shades.

#0a6b47 → rgb(10, 107, 71) → hsl(157, 83%, 23%)

Contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. The tool reports contrast against white and black so you can choose readable text on any background.

Frequently asked questions

How do I convert HEX to RGB?

Split the HEX code into three pairs and convert each from base 16 to decimal. #0a6b47 gives 10, 107, 71.

What does HSL stand for?

Hue, saturation and lightness.

What contrast ratio do I need?

At least 4.5:1 for body text under WCAG AA.

Are 3-digit HEX codes supported?

Yes, #0a6 expands to #00aa66.

Last updated 2026-09-30. Built and tested by Aqeeb at CricBlink. Results are estimates for information only. See our terms. Found a mistake? Tell us.