Toolskits

Online tool

Color converter

Convert a colour between HEX, RGB and HSL, copy the values, and check whether black or white text is readable on it.

Loading the tool…

  1. Enter or pick a colour
  2. Copy a value

More text and generator tools

See all text and generator tools · All utilities

About colour converter

Type a colour in any of the three boxes (HEX like #2563eb, RGB like rgb(37, 99, 235) or HSL like hsl(221, 83%, 53%)) and the others update. Use the colour picker to choose visually, and press Copy to take a value.

The contrast line shows the WCAG contrast ratio against white and black text. 4.5:1 or more passes level AA for normal text.

How to convert a colour

  1. Enter or pick a colourAny of the three formats works.
  2. Copy a valuePress Copy next to HEX, RGB or HSL.

Good to know

Frequently asked questions

What is the difference between RGB and HSL?

RGB mixes red, green and blue light. HSL describes the same colour as hue, saturation and lightness, which is easier to adjust by hand.

Other Toolskits tools