Design · Free · No AI

Free HEX, RGB and HSL Color Converter

Convert common colour formats, preview the result and compare black and white text contrast.

Private by defaultValues stay in this browser and are not sent to LeadHub.
Best text: White

Contrast 5.70:1

Colour values

#7C3AED
rgb(124, 58, 237)
hsl(262, 83%, 58%)
White text ratio
5.70:1
Black text ratio
3.69:1

How to use it

A simple three-step workflow

  1. 1Choose a colour or enter HEX, RGB or HSL.
  2. 2Review the synchronized values.
  3. 3Copy the format you need and inspect text contrast.

Useful context

Convert web colours and choose a readable text colour

HEX, RGB and HSL describe the same web colour in different forms. Designers often use HEX in brand guidelines, RGB in code and HSL when adjusting lightness or saturation.

The contrast values use the WCAG relative-luminance formula for opaque sRGB colours. They are helpful for choosing black or white text, but a complete accessibility review should also inspect font size, weight, states and surrounding UI.

Questions

Frequently asked questions

What colour formats are supported?+

The tool accepts standard six- or three-digit HEX, RGB values and HSL values.

How is the best text colour selected?+

The tool compares WCAG contrast ratios for black and white and displays the higher result.

Does this replace an accessibility audit?+

No. It provides a focused colour comparison, not a complete interface audit.