HEX to HSL: #422006
Also known as: Tailwind v3 yellow-950
Result
#422006 → hsl(26 83% 14%)
Values are shown at full precision, so converting back gives exactly #422006. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. RGB ÷ 255
R = 0.2588 G = 0.1255 B = 0.0235
2. max, min, Δ
max = 0.2588 min = 0.0235 Δ = max − min = 0.2353
3. L
L = (max + min) / 2 = 0.1412 = 14.12%
4. S
S = Δ / (1 − |2L − 1|) = 0.8333 = 83.33%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.1255 − 0.0235) / 0.2353) mod 6) = 26.00°
6. HSL
hsl(26.00 83.33% 14.12%)
All formats
- HEX
- #422006
- RGB
- rgb(66 32 6)
- RGB (legacy)
- rgb(66, 32, 6)
- HSL
- hsl(26.00 83.33% 14.12%) → hsl(26 83% 14%)
- HWB
- hwb(26 2% 74%)
- OKLCH
- oklch(0.286 0.064 53.8) · oklch(28.6% 0.064 53.8)
- OKLab
- oklab(0.286 0.038 0.052)
- Lab (D50)
- lab(16.79 15.18 22.41)
- LCH (D50)
- lch(16.79 27.07 55.89)
- Display P3
- color(display-p3 0.2411 0.1322 0.0466)
- Linear sRGB
- color(srgb-linear 0.0545 0.0144 0.0018)
Gamut: sRGB and Display P3
#422006 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.072 and Display P3 reaches 0.082; this color uses 89% of the sRGB chroma available.
CSS snippets
.element {
color: #422006;
color: rgb(66 32 6);
color: hsl(26 83% 14%);
color: oklch(0.286 0.064 53.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.286 0.064 53.8);
}
/* arbitrary values */
class="text-[#422006] bg-[oklch(0.286_0.064_53.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2411 0.1322 0.0466); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #422006 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- yellow-950#432004
- v3 amber-950#451A03
- amber-950#461901
- v3 orange-950#431407
- orange-950#441306
- v3 red-950#450A0A
- red-950#460809
- olive-800#2B2B22
Lighter and darker, same hue and chroma
- #532F16 · oklch(0.346 0.064 53.8) · ΔL +0.06
- #321100 · oklch(0.226 0.064 53.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?