HEX to HSL: #4C0519
Also known as: Tailwind v3 rose-950
Result
#4C0519 → hsl(343 88% 16%)
Values are shown at full precision, so converting back gives exactly #4c0519. 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.2980 G = 0.0196 B = 0.0980
2. max, min, Δ
max = 0.2980 min = 0.0196 Δ = max − min = 0.2784
3. L
L = (max + min) / 2 = 0.1588 = 15.88%
4. S
S = Δ / (1 − |2L − 1|) = 0.8765 = 87.65%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.0196 − 0.0980) / 0.2784) mod 6) = 343.10°
6. HSL
hsl(343.10 87.65% 15.88%)
All formats
- HEX
- #4c0519
- RGB
- rgb(76 5 25)
- RGB (legacy)
- rgb(76, 5, 25)
- HSL
- hsl(343.10 87.65% 15.88%) → hsl(343 88% 16%)
- HWB
- hwb(343 2% 70%)
- OKLCH
- oklch(0.271 0.101 12.1) · oklch(27.1% 0.101 12.1)
- OKLab
- oklab(0.271 0.099 0.021)
- Lab (D50)
- lab(14.26 32.69 9.36)
- LCH (D50)
- lch(14.26 34.00 15.98)
- Display P3
- color(display-p3 0.2710 0.0492 0.1011)
- Linear sRGB
- color(srgb-linear 0.0723 0.0015 0.0097)
Gamut: sRGB and Display P3
#4C0519 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.108 and Display P3 reaches 0.122; this color uses 93% of the sRGB chroma available.
CSS snippets
.element {
color: #4c0519;
color: rgb(76 5 25);
color: hsl(343 88% 16%);
color: oklch(0.271 0.101 12.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.271 0.101 12.1);
}
/* arbitrary values */
class="text-[#4c0519] bg-[oklch(0.271_0.101_12.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2710 0.0492 0.1011); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4c0519 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- rose-950#4D0218
- v3 pink-950#500724
- pink-950#510424
- red-950#460809
- v3 red-950#450A0A
- orange-950#441306
- v3 orange-950#431407
- amber-950#461901
Lighter and darker, same hue and chroma
- #5E1927 · oklch(0.331 0.101 12.1) · ΔL +0.06
- #3A000B · oklch(0.211 0.101 12.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?