Convert any color between HEX, RGB, RGBA, HSL, HSLA, HWB, and OKLCH instantly in your browser. Visual color picker, one-click copy, real-time preview. 100% client-side.

Color Format Converter is a free, browser-based tool that converts any color value between every major CSS format instantly. Paste a HEX code, an rgb() function, a named color, or even an oklch() value — and get all eight formats back at once. No install, no account, works offline.
Designers and developers constantly move colors between contexts that use different formats. Figma gives you HEX. Tailwind config uses HEX or RGB. Your CSS design tokens use HSL. The new color space spec recommends OKLCH. And somewhere in your codebase there's an rgba() with an alpha channel.
Every conversion means opening a search tab, copying the wrong format, or mentally doing the math. Most online converters handle one format at a time — you paste a HEX, get an RGB, then have to paste that RGB to get HSL.
Color Format Converter outputs all formats simultaneously. One paste, everything.
The tool accepts any valid CSS color string as input:
#ec4899 or #EC4899 — 3, 4, 6, or 8 digit HEXrgb(236, 72, 153) or rgb(236 72 153) — legacy and modern syntaxrgba(236, 72, 153, 0.8) — with alpha channelhsl(330, 81%, 60%) or hsl(330 81% 60%) — HSL both syntaxeshsla(330, 81%, 60%, 0.8) — HSLAhwb(330 18% 7%) — HWB (modern CSS)oklch(63.49% 0.2437 0deg) — OKLCH perceptual color spacehotpink, cornflowerblue, rebeccapurple — all 140+ named CSS colorsType or paste any of these and the tool parses it instantly, updating all output formats in real time.
Click the color swatch on the left to open the browser's native color picker. Select any color visually and the text input updates automatically with the chosen HEX value. All eight output formats update in sync.
Every valid input produces eight output cards simultaneously:
| Format | Example |
|--------|---------|
| HEX | #EC4899 |
| HEX with alpha | #EC4899FF |
| RGB | rgb(236 72 153) |
| RGBA | rgba(236, 72, 153, 1) |
| HSL | hsl(330 81.2% 60.4%) |
| HSLA | hsla(330, 81.2%, 60.4%, 1) |
| HWB | hwb(330 18.0% 7.8%) |
| OKLCH | oklch(63.49% 0.2437 0.00) |
Every format card has a copy button. One click puts the value on your clipboard and shows a confirmation toast. There's also a "Copy all formats" button that copies every value in label: value format — useful for pasting into a doc or token file.
A full-width preview swatch below the input shows the exact rendered color including any alpha channel. As you type, it updates in real time — no submit button needed.
Your design system defines colors in one format (often HEX from Figma). Your CSS custom properties use HSL. Your Tailwind config uses RGB fractions. Paste the HEX once and copy whichever format each context needs — no manual conversion, no rounding errors.
Modern CSS color spaces are gaining adoption. Convert your existing HEX or HSL values to OKLCH to verify they fall in the expected perceptual range before migrating your design tokens.
When a color isn't rendering as expected in a browser, paste the rgba() or hsla() value to see the clean HEX equivalent and verify the alpha channel is what you expect.
Type rebeccapurple or cornflowerblue to instantly see the HEX and RGB values behind any named CSS color — useful for documentation and design reviews.
--brand / --brand-accent OKLCH tokensAll conversions go through an internal RGBA representation (red, green, blue in 0–255, alpha in 0–1):
Try it now: color-format-converter.tools.jagodana.com
The client needed a robust design tools solution that could scale with their growing user base while maintaining a seamless user experience across all devices.
We built a modern application using Color and CSS, focusing on performance, accessibility, and a delightful user experience.
Category
Design Tools
Technologies
Date
April 2026
More work in Design Tools