MicroToolKit

Free Color Converter โ€” HEX, RGB, HSL & HSV

Convert any color between HEX, RGB, HSL, and HSV formats with a live preview swatch. Enter a hex code, pick from the color wheel, or type RGB values to see all formats instantly.

#3B82F6

Color Formats

HEX

#3B82F6

RGB

rgb(59, 130, 246)

HSL

hsl(217, 91%, 60%)

HSV

hsv(217, 76%, 96%)

CSS var

--color: #3B82F6;

Tailwind-like

rgba(59, 130, 246, 1)

Accessibility (WCAG)

Contrast vs White3.68:1 AA Large
Contrast vs Black5.71:1 AA โœ“
Luminance23.5%

Frequently Asked Questions

How do I convert HEX to RGB?

Take the hex value and split it into three two-character pairs. Convert each from base-16 to base-10. Example: #3B82F6 โ†’ R=59, G=130, B=246. This tool does it instantly for any color.

What is the difference between HSL and HSV?

HSL (Hue, Saturation, Lightness) and HSV (Hue, Saturation, Value/Brightness) represent color differently. HSL uses lightness where pure white is L=100%. HSV uses value where maximum brightness with full saturation gives a pure hue. CSS natively supports HSL.

Related Free Tools

Your data never leaves your device

All conversion runs in your browser with no data sent anywhere. You can verify this in your browser's Network tab โ€” no outbound requests are made with your data. Read our Privacy Policy โ†’