HEX to RGB Color Converter

Convert between HEX, RGB and HSL colour notation, one colour per line.

Private, in-browser processing
Information

HEX RGB Converter is a text-based utility for developers and designers who need to move between colour notations quickly. Paste one or more values — HEX like #3B82F6, RGB like rgb(59, 130, 246), or HSL like hsl(217, 91%, 60%) — one per line, and get all three notations back for every entry, matched up so nothing gets mismatched in a long list. Each result also includes a relative luminance figure and a short contrast note, flagging whether a colour reads as light or dark, which is a quick sanity check before pairing it with black or white text for accessibility. Unlike the other colour tools in this toolkit, this one works entirely on typed or pasted text — no image upload is needed. It is built for the moments a design spec hands you HSL values but your CSS uses HEX, or a client sends RGB triplets that need converting into a stylesheet in one pass rather than one colour at a time.

Colour values
0 words0 / 5000 characters
Result

Nothing here yet

Paste colour values and click Convert Colors to see HEX, RGB and HSL for each.

Colour toolkit

Use the live picker below, or upload an image to extract its palette.

Live colour picker & converter

HEX#2563EB
RGBrgb(37, 99, 235)
HSLhsl(221, 83%, 53%)
HSVhsv(221, 84%, 92%)
CMYKcmyk(84%, 58%, 0%, 8%)

Complementary

Analogous

Triadic

Your palette0 saved

Save colours from the swatches above or the picker to build a palette, then export it as CSS, SCSS, Tailwind, JSON or Figma tokens.

Contrast checker

Sample text Aa

Contrast ratio

17.74:1

Normal AAPassNormal AAAPassLarge AAPassLarge AAAPass

HEX to RGB Color Converter · preview mode with placeholder results

Examples

Click any example to load it into the input.

How to use

1

Paste your colours

Enter HEX, RGB or HSL values, one per line, in any mix.

2

Run the conversion

Every value is parsed and converted to all three notations.

3

Check the results

Read matched HEX, RGB and HSL output plus a luminance note for each colour.

4

Copy what you need

Grab individual values or the full converted list for your stylesheet.

Image Color Palette Generator

Turn any image into a brand palette exported as CSS, SCSS, Tailwind or JSON.

Open Tool

Dominant Colors From Image

Find the colours that actually dominate a photo, with HEX, RGB and HSL values.

Open Tool

Fix Image Color Balance

Nudge red, green and blue independently to correct a colour cast.

Open Tool

Remove Background from Image

Remove the background from a photo online and download a transparent PNG in seconds.

Open Tool

Compress Image (Reduce File Size)

Compress images online to shrink file size for the web without losing visible quality.

Open Tool

Resize Image (Change Dimensions)

Resize images to exact pixel dimensions or by percentage, with the aspect ratio locked.

Open Tool

Related articles

Article

HEX, RGB and HSL: when to use which

4 min read

Guide

Understanding relative luminance and contrast

5 min read

Tutorial

Building an accessible colour system

6 min read

Frequently asked questions