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…
- Enter or pick a colour
- Copy a value
- Free
- No sign-up
- Runs on your device
More text and generator tools
- Password generatorCreate a strong, random password in one click. It is made on your device with the browser’s…
- Word counterPaste or type your text to count words, characters, sentences and paragraphs, and to estimate…
- JSON formatterPaste JSON to make it readable, check that it is valid, or shrink it to one line. Errors show…
- QR code generatorCreate a QR code for a website, text, Wi-Fi login, e-mail or phone number and download it as PNG…
- Text case converterChange the case of any text with one click: capitals, small letters, title case, sentence case…
- Lorem ipsum generatorPlaceholder text for designs, mockups and templates: choose how many paragraphs and sentences,…
- Base64 encoder and decoderConvert text to Base64 and back. Works with accents, emoji and any language, and offers URL-safe…
- URL encoder and decoderTurn spaces and special characters into %20-style codes for web addresses, or decode them back…
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
- Enter or pick a colourAny of the three formats works.
- Copy a valuePress Copy next to HEX, RGB or HSL.
Good to know
- Short HEX values such as #fff are understood.
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.