🎨 Color Converter
Convert between HEX, RGB, HSL and HSV. Edit any field and the rest update live. Runs in your browser.
About the Color Converter
The same color can be written many ways. #0EA5E9, rgb(14, 165, 233) and hsl(199, 89%, 48%) all describe the identical shade of blue — they just use different coordinate systems. This tool converts freely between the four formats developers and designers use most: HEX, RGB(A), HSL(A) and HSV. Edit any field and every other representation updates instantly, alongside a live swatch.
HEX and RGB describe a color by its red, green and blue channels. HSL (hue, saturation, lightness) and HSV (hue, saturation, value) are cylindrical models that make it far easier to reason about relationships — lightening, darkening, or shifting hue — which is why the tool also generates tint and shade ramps you can click to adopt.
How to use it
- Type into any field — HEX, RGB, HSL or HSV. The others convert live as you type.
- Use the picker for a visual choice, and the Alpha slider for transparency (reflected in HEX8 and the rgba/hsla output).
- Copy any format with its copy button.
- Click a tint or shade to make that variation your working color.
Features
🔄 Live conversion
Edit any one format and HEX, RGB, HSL and HSV all update simultaneously.
🎚 Alpha support
Adjust transparency; it flows through to HEX8, rgba() and hsla() output.
🖌 Color picker
Pick visually with the native color input, then read off every format.
🌗 Tints & shades
Auto-generated lighter and darker variations — click any to adopt it.
📋 Per-format copy
Copy exactly the HEX, RGB, HSL or HSV string you need.
🔒 100% client-side
All conversion happens in your browser — nothing is sent anywhere.
Frequently Asked Questions
What's the difference between HSL and HSV?
Both use hue and saturation, but their third axis differs. HSL's lightness runs from black (0%) through the pure color (50%) to white (100%). HSV's value runs from black (0%) to the pure, fully-bright color (100%) with no built-in path to white. HSL is common in CSS; HSV (also called HSB) appears in many design tools' color pickers.
How do I add transparency?
Use the Alpha slider. An alpha below 1 is reflected in the outputs as an 8-digit HEX (#RRGGBBAA), rgba(), and hsla(). HSV has no standard alpha notation, so that field shows the opaque color.
Which HEX formats are accepted?
You can type 3-digit (#0af), 4-digit with alpha (#0af8), 6-digit (#00aaff) or 8-digit (#00aaff80) HEX, with or without the leading #. Shorthand is automatically expanded.
Why do some conversions round slightly?
RGB channels are integers 0–255 while HSL/HSV use degrees and percentages, so converting back and forth can shift a value by one unit due to rounding. The color is visually identical; the tiny difference is just display rounding.
Is my data sent anywhere?
No. All color math runs locally in your browser. Nothing you enter is transmitted to or stored on any server.