HEX to RGB Color Converter
Convert between HEX, RGB and HSL colour notation, one colour per line.
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.
Nothing here yet
Paste colour values and click Convert Colors to see HEX, RGB and HSL for each.
Use the live picker below, or upload an image to extract its palette.
Live colour picker & converter
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
Contrast ratio
17.74:1
HEX to RGB Color Converter · preview mode with placeholder results
Examples
Click any example to load it into the input.
How to use
Paste your colours
Enter HEX, RGB or HSL values, one per line, in any mix.
Run the conversion
Every value is parsed and converted to all three notations.
Check the results
Read matched HEX, RGB and HSL output plus a luminance note for each colour.
Copy what you need
Grab individual values or the full converted list for your stylesheet.
Related tools
Image Color Palette Generator
Turn any image into a brand palette exported as CSS, SCSS, Tailwind or JSON.
Open ToolDominant Colors From Image
Find the colours that actually dominate a photo, with HEX, RGB and HSL values.
Open ToolRemove Background from Image
Remove the background from a photo online and download a transparent PNG in seconds.
Open ToolCompress Image (Reduce File Size)
Compress images online to shrink file size for the web without losing visible quality.
Open ToolResize Image (Change Dimensions)
Resize images to exact pixel dimensions or by percentage, with the aspect ratio locked.
Open ToolRelated articles
HEX, RGB and HSL: when to use which
4 min read
Understanding relative luminance and contrast
5 min read
Building an accessible colour system
6 min read