HSLuv Color Converter
Convert between HSLuv, HEX, sRGB, and CIELUV. HSLuv keeps perceived lightness constant across hues, so changing H or S barely changes brightness — only L controls it.
The hue band above shows the full HSLuv hue circle at your current S and L.
HSLuv sliders
Other inputs
All conversions
Saved swatches
No saved swatches yet. Save a color to compare how HSLuv lightness stays stable across different hues.
What is an HSLuv color converter?
An HSLuv color converter translates between HSLuv, HEX, sRGB, and CIELUV. HSLuv is a human-friendly alternative to HSL built on CIELUV, the perceptually uniform color space adopted by the CIE in 1976 [citation:1]. Unlike HSL, where changing hue can dramatically change perceived brightness, HSLuv keeps lightness stable across hues. Only the L value controls how light or dark a color looks, which makes HSLuv ideal for accessible color systems, design tokens, and palettes that need consistent contrast.
Key takeaways
- HSLuv is HSL-like in code but built on CIELUV, a perceptual color space.
- Changing H or S barely changes perceived lightness; only L controls brightness [citation:1][citation:3].
- Saturation is a percentage of the maximum sRGB chroma at that L and H .
- HSLuv is not native in CSS — convert to HEX or OKLCH for production.
- Great for accessible color systems, theme generation, and status colors.
- Every value is computed with the reference HSLuv implementation.
How to use the HSLuv color converter
Every field updates live. Move between HSLuv, HEX, sRGB, and CIELUV at any point.
- Enter HSLuv or any other formatStart from HSLuv, HEX, sRGB, or CIELUV. Every field updates live, so you can enter a value in whichever format you already have.
- Drag the H, S, and L slidersAdjust hue (0–360), saturation (0–100), and lightness (0–100). HSLuv guarantees that changing H or S barely affects perceived lightness — only L controls brightness [citation:1][citation:3].
- Watch the gamut indicatorHSLuv saturation is a percentage of the maximum chroma that sRGB can display at that lightness and hue . The tool shows when you hit the sRGB boundary.
- Read the CIELUV equivalentEvery HSLuv value maps to CIELUV (L*, u*, v*). Use CIELUV when you need the underlying perceptual model, or stay in HSLuv for intuitive control.
- Copy ready-to-paste valuesCopy HSLuv, HEX, sRGB, CIELUV, CSS, or design-token JSON with one click. Every value is computed with the reference HSLuv implementation.
- Save and compare swatchesSave colors to a strip and compare how HSLuv lightness stays stable across different hues, which is the core reason HSLuv exists.
HSLuv vs HSL vs CIELUV
Each space answers a different question. HSLuv is the developer-friendly wrapper around CIELUV that behaves like HSL.
| Space | Coordinates | Perceptually uniform? | Best for |
|---|---|---|---|
| HSL | H (0–360), S (0–100%), L (0–100%) | No | Quick familiar tweaks, but brightness shifts with hue |
| HSLuv | H (0–360), S (0–100), L (0–100) | Yes | Accessible systems, theme generation, stable contrast |
| CIELUV | L* (0–100), u*, v* | Yes | Underlying perceptual model, color science work |
| HEX | 6-digit sRGB | No | CSS, design tools, shorthand |
Why HSLuv exists
sRGB and HSL are irregular with respect to human vision. Evenly spaced hue values in HSL do not produce evenly spaced perceived colors [citation:1]. A saturated green at HSL lightness 50 looks much brighter than a saturated blue at the same HSL lightness. This is a problem when you build a color system: two colors that should have equal visual weight end up looking unbalanced.
CIELUV was designed to fix this. It is based on human experiments and was adopted by the CIE in 1976 as a simple-to-compute transformation of CIE XYZ [citation:1]. But CIELUV's chroma component has no fixed range, which makes it hard to expose in a UI. HSLuv solves that by normalizing chroma into a saturation percentage relative to the maximum sRGB can display at that lightness and hue . The result is an HSL-like interface with perceptual guarantees.
Understanding HSLuv saturation
HSLuv saturation is not the same as HSL saturation. It is a percentage of the maximum chroma that sRGB can display at the current L and H . This means:
- S = 100 gives the most saturated color sRGB can display at that lightness and hue.
- S = 0 gives a grey at the same lightness.
- Different hues have different maximum chroma, so S = 100 looks more colorful at some hues than others.
This is exactly what you want in a design system: a "red 500" and a "blue 500" with the same HSLuv L and S will have the same perceived lightness, even though their actual RGB values differ.
HSLuv in practice
| Use case | Why HSLuv helps |
|---|---|
| Status colors | Success, warning, and error colors with the same HSLuv L have equal perceived weight. |
| Chart categories | Categorical colors stay balanced instead of one hue dominating the chart. |
| Theme generation | Rotate hue without accidentally breaking contrast ratios. |
| Design tokens | Store HSLuv values and convert to HEX or OKLCH at build time. |
| Accessible palettes | Keep lightness fixed and vary hue to stay within a WCAG contrast band [citation:1]. |
HSLuv vs OKLCH
Both are perceptual color spaces, but they come from different eras. HSLuv is based on CIELUV (1976); OKLCH is based on OKLab (2020). HSLuv has broader language support because it is older, while OKLCH is newer and has native CSS support via oklch(). If you are building for modern CSS, OKLCH is the practical choice. If you need HSLuv in a legacy system or a language where HSLuv ports already exist, use HSLuv. To convert between them, you can go through CIELUV or XYZ, or use the OKLab Color Converter for the OK side.
Common mistakes
- Treating HSLuv S as HSL S. HSLuv S is a percentage of available chroma, not a raw saturation number.
- Expecting HSLuv in CSS. CSS does not define
hsluv(). Convert to HEX or OKLCH before shipping. - Assuming S = 100 is always colorful. At very low or very high lightness, the available chroma is small.
- Ignoring gamut. HSLuv saturation is clamped to sRGB. For wider gamuts, use a different space.
- Mixing HSLuv and OKLCH in one system. Pick one perceptual space per project to keep lightness curves consistent.
Frequently asked questions
What is HSLuv?
HSLuv is a human-friendly alternative to HSL. It is built on CIELUV, a perceptually uniform color space adopted by the CIE in 1976 [citation:1]. HSLuv replaces CIELUV's unbounded chroma with a saturation percentage (0–100) relative to the maximum sRGB can display at a given lightness and hue. The result is an HSL-like interface where changing lightness actually changes perceived brightness, and changing hue does not.
Why use HSLuv instead of HSL?
In HSL, changing hue at a fixed lightness can dramatically change perceived brightness. A saturated green looks much brighter than a saturated blue at the same HSL lightness. HSLuv fixes this: at a fixed HSLuv L, every hue has nearly the same perceived lightness [citation:1][citation:3]. This makes HSLuv ideal for building accessible color systems where contrast must stay predictable across hues.
What do H, S, and L mean in HSLuv?
H is hue in degrees (0–360). S is saturation as a percentage (0–100) of the maximum chroma sRGB can display at that L and H . L is perceptual lightness (0–100), where 0 is black, 50 is a clear color, and 100 is white [citation:10]. Unlike HSL, HSLuv L is tied to CIELUV L*, so equal numeric steps look equally bright.
How do I convert HSLuv to HEX?
Enter the H, S, and L values or drag the sliders. The tool converts HSLuv to CIELUV, then to XYZ, then to linear sRGB, and finally applies the sRGB transfer function to get a displayable HEX. If the color is out of gamut, it clamps to the nearest displayable value and warns you.
How do I convert HEX to HSLuv?
Paste the HEX code into the HEX field. The tool decodes sRGB, converts to linear light, then to XYZ, then to CIELUV, and finally to HSLuv. Every other field updates at the same time.
What is the difference between HSLuv and CIELUV?
CIELUV is the underlying perceptual color space. It uses L*, u*, and v* as Cartesian coordinates. HSLuv is a polar transformation of CIELUV with a normalized saturation component, so it behaves like HSL in code while keeping CIELUV's perceptual properties [citation:1]. Think of HSLuv as a developer-friendly wrapper around CIELUV.
Is HSLuv the same as OKLCH?
No. HSLuv is based on CIELUV (1976), while OKLCH is based on OKLab (2020). Both are perceptual and useful for palettes, but they have different lightness curves and hue angles. HSLuv has broader language support because it is older, while OKLCH is newer and better suited for modern CSS because oklch() is a native CSS function.
What is HSLuv good for?
HSLuv is excellent for accessible color systems, design tokens, theme generation, and any task where you need to change hue without accidentally changing contrast. It is used in design systems that need consistent perceived lightness across a set of hues, such as status colors, chart categories, and brand ramps [citation:1][citation:2].
What is the saturation range in HSLuv?
Saturation runs from 0 to 100. It represents a percentage of the maximum sRGB chroma available at the current lightness and hue . Saturation 100 means the most saturated color sRGB can display at that L and H; saturation 0 means grey.
Does HSLuv work in CSS?
Not natively. CSS Color Module Level 4 defines oklch() and oklab() but not hsluv(). To use HSLuv in CSS, convert to HEX, rgb(), or oklch() first. This tool gives you the HEX and sRGB values you need for production CSS.
Is the HSLuv color converter free?
Yes. The tool is free, needs no account, and runs entirely in your browser. Your colors are never uploaded.
What is HPLuv?
HPLuv is a companion to HSLuv that uses a different gamut boundary — it only allows pastel colors that fit within the sRGB gamut for every hue at a given lightness. This tool focuses on HSLuv, which spans the full sRGB gamut at saturation 100.