Color Converter

Convert colors between HEX, RGB, and HSL formats with live preview and CSS output.

Pick a color

HEX#E91E8C
RGBrgb(233, 30, 140)
HSLhsl(327, 82%, 52%)
CSS Variable--color: #E91E8C;
Tailwind CSSbg-[#E91E8C]
RGBA
rgba(233, 30, 140, 1)
1.00

How to Use the Color Converter

1

Enter a Color Value

Type any color in HEX (#FF0000), RGB (rgb(255, 0, 0)), or HSL (hsl(0, 100%, 50%)) format. Or use the color picker.

2

See All Formats

The tool instantly shows your color in HEX, RGB, and HSL formats along with CSS variable and Tailwind class output.

3

Copy What You Need

Click the Copy button next to any format to copy it to your clipboard.

Features

Convert between HEX, RGB, and HSL color formats
Auto-detect input format — just paste any color value
Large color preview swatch
Native color picker for visual selection
CSS variable output (--color: #hex)
Tailwind CSS arbitrary value class
RGBA output with adjustable alpha slider
Free to use with no sign-up required

Frequently Asked Questions

HEX (#RGB, #RRGGBB), RGB (rgb(R, G, B)), and HSL (hsl(H, S%, L%)). You can also enter plain comma-separated RGB values like '255, 0, 0'.

HSL stands for Hue, Saturation, Lightness. It's a more intuitive color model where Hue is the color angle (0-360°), Saturation is the intensity (0-100%), and Lightness is how light or dark (0-100%).

The Tailwind output gives you an arbitrary value class like bg-[#E91E8C] that you can use directly in your Tailwind CSS projects for custom colors.

Yes. The color picker uses your browser's native color input, which provides accurate HEX color values that we then convert to all other formats.

Need a Custom Tool or Application?

We build production-grade web applications, SaaS platforms, and developer tools. Let's talk about your project.

or book a free call