Converters / TOOLKIT
Color Converter
Convert between HEX, RGB and HSL, preview the color and explore harmony palettes.
Free to use · No account needed
How to use
- Use the color picker, or paste any supported format: #185FA5, #18a, rgb(24, 95, 165), hsl(210, 75%, 37%).
- All three formats update instantly, with a large preview swatch.
- Scroll down for automatic palettes: complementary, analogous, triadic and shades.
Use cases
1. Use case: Match brand colors Convert a HEX brand color from your style guide into RGB or HSL to use in gradients, shadows and design tokens.
2. Use case: Debug CSS colors Copy a color from dev tools in RGB, convert it to HEX, and compare it against a design mockup.
Practical tips
Hex colors support a three-digit shorthand (#F00 equals #FF0000), and both notations arrive in the wild, so paste either. RGB channels run 0–255, not 0–100 percent — a common source of muddy conversions. If a design needs transparency, you need RGBA or HSLA, not plain hex. When matching a brand color across materials, convert once and record both formats rather than eyeballing re-conversions. Like every tool on this site, the Color Converter runs entirely in your browser: the data you enter never leaves your device, nothing is uploaded to a server, and the tool keeps working if your connection drops.
Common mistakes
Color conversion errors are almost always notation errors:
- Typing RGB values above 255 or below 0 — channels clamp, and the muted result gets mistaken for the color itself being wrong.
- Losing characters when copying hex: a five-digit paste of a six-digit code is a different color entirely.
- Expecting plain hex to carry transparency: opacity needs the eight-digit #RRGGBBAA notation or RGBA/HSL, not six-digit hex.
- Matching colors across screens without accounting for calibration — the same RGB value renders differently on two monitors.
Why use this tool
Record and reuse beats re-deriving by eye:
- Recording both hex and RGB for a brand kit, so every future asset matches without guesswork.
- Checking that a color survives notation changes — convert once and store both forms in your design tokens.
- Working across tools that expect different notations: CSS wants rgb() or hex, while many design tools prefer HSL.
- Debugging why a color looks wrong — exact values reveal transcription typos that eyeballing hides.
Frequently asked questions
Does the Color Converter send my data anywhere?
No. It runs entirely in your browser — your input is processed on your device and never uploaded. Refresh the page and it still works offline.