Color Format Converter

Convert colors between HEX, RGB, RGBA, HSL, HSLA, and CSS named color formats. Includes a color picker and real-time preview.

Runs in browser — no data sent to servers color hex rgb hsl
R
G
B
S%
L%
HEX
RGB
HSL
RGBA
CSS var
Closest Tailwind

Why use a Color Format Converter?

Design tools, CSS, Tailwind, and APIs all use different color formats — you might receive a color as HEX from a designer, need RGB values for a CSS animation, and HSL for dynamic lightness adjustments in a theme. This converter handles all three input formats interchangeably, generates all output representations simultaneously, and even suggests the closest Tailwind CSS utility class — saving time context-switching between tools. Pair it with the markdown previewer and image to Base64 tool in the developer tools category.

🎨

All formats at once

Pick or enter a color once and instantly see HEX, RGB, HSL, RGBA, a CSS custom property, and the nearest Tailwind class — no repeated conversions.

🖌️

Tints & shades strip

A visual strip shows ten tints from full color to white, helping you build consistent color scales for UI design systems or Tailwind config files.

🔄

Bidirectional input

Enter values in any format — HEX text field, R/G/B number inputs, H/S/L sliders, or the native color picker — and all other fields update instantly.

Color format comparison

Each color format has different strengths. Knowing which to use in each context avoids conversion friction in your workflow.

Format Example Best for Alpha support
HEX #1B5CDB Design tools, Figma, CSS tokens, Tailwind config #RRGGBBAA (8-digit)
RGB rgb(27, 92, 219) CSS properties, canvas rendering, image processing Via rgba()
HSL hsl(220, 77%, 48%) Dynamic theming, generating color scales, dark mode Via hsla()
RGBA rgba(27, 92, 219, 0.5) Overlays, shadows, semi-transparent UI elements Native (0–1)