Free Color Converter (HEX, RGB, HSL)
Convert any color between HEX, RGB, and HSL · type in one format and get the others, with a live swatch and CSS-ready values.
100% client-side · nothing you enter is ever sent to a server or stored.
Preview · sign in with a free account to run it
How to use it
- Type a colour in any format: #6d28d9, #63d, rgb(109, 40, 217) or hsl(263, 70%, 50%). Alpha values work too.
- Read the same colour as HEX, RGB and HSL, with a live swatch.
- Copy the CSS-ready value.
Example
Input
#6d28d9
Result
HEX #6d28d9 RGB rgb(109, 40, 217) HSL hsl(263, 70%, 50%)
When to use each format
- HEX
- The most compact, and the one design tools export. 8-digit hex adds alpha.
- RGB
- Easy to read as channels, and rgb(… / 0.5) adds transparency.
- HSL
- The easiest to adjust by hand: change lightness for hover states, or hue for a palette.
Go deeper
Page updated
Frequently asked questions
When should I use HSL instead of HEX?
When you need to reason about color: HSL separates hue, saturation, and lightness, so "10% darker" is just a lightness change. Design systems (including Tailwind themes) increasingly define tokens in HSL for exactly this reason.
Does it handle alpha (transparency)?
Yes · 8-digit hex (#RRGGBBAA), rgba(), and hsla() all parse and convert, and the swatch preview renders the transparency over a checkerboard.
Is this colour readable on my background?
Use the Color Contrast Checker. It computes the WCAG ratio for any pair.
Want the full picture?
This tool covers one narrow check. A full SimplyScan runs 60 checks across 14 categories · exposed keys, RLS, XSS, auth, and speed · in 30 seconds.
Run a full security scanRelated tools
URL Slug Generator
Turn any headline into a clean URL slug · lowercase, hyphenated, accent-free, with optional stop-word removal.
JSON Formatter
Paste JSON to pretty-print, minify, or validate it · with the exact line and position of any syntax error.
JSON to TypeScript
Convert a JSON payload into TypeScript interfaces · nested objects and arrays included · ready to paste into your codebase.