HEX to HSL: #B91C1C
Also known as: Tailwind v3 red-700
Result
#B91C1C → hsl(0 74% 42%)
Values are shown at full precision, so converting back gives exactly #b91c1c. 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.7255 G = 0.1098 B = 0.1098
2. max, min, Δ
max = 0.7255 min = 0.1098 Δ = max − min = 0.6157
3. L
L = (max + min) / 2 = 0.4176 = 41.76%
4. S
S = Δ / (1 − |2L − 1|) = 0.7371 = 73.71%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.1098 − 0.1098) / 0.6157) mod 6) = 0.00°
6. HSL
hsl(0.00 73.71% 41.76%)
All formats
- HEX
- #b91c1c
- RGB
- rgb(185 28 28)
- RGB (legacy)
- rgb(185, 28, 28)
- HSL
- hsl(0.00 73.71% 41.76%) → hsl(0 74% 42%)
- HWB
- hwb(0 11% 27%)
- OKLCH
- oklch(0.505 0.190 27.5) · oklch(50.5% 0.190 27.5)
- OKLab
- oklab(0.505 0.169 0.088)
- Lab (D50)
- lab(40.73 59.92 43.88)
- LCH (D50)
- lch(40.73 74.27 36.22)
- Display P3
- color(display-p3 0.6660 0.1804 0.1504)
- Linear sRGB
- color(srgb-linear 0.4851 0.0116 0.0116)
Gamut: sRGB and Display P3
#B91C1C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.206 and Display P3 reaches 0.232; this color uses 92% of the sRGB chroma available.
CSS snippets
.element {
color: #b91c1c;
color: rgb(185 28 28);
color: hsl(0 74% 42%);
color: oklch(0.505 0.190 27.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.505 0.190 27.5);
}
/* arbitrary values */
class="text-[#b91c1c] bg-[oklch(0.505_0.190_27.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6660 0.1804 0.1504); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #b91c1c calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- firebrick#B22222
- red-700#C10007
- v3 rose-700#BE123C
- brown#A52A2A
- rose-700#C70036
- orange-700#CA3500
- orange-800#9F2D00
- v3 orange-700#C2410C
Lighter and darker, same hue and chroma
- #CE3630 · oklch(0.565 0.190 27.5) · ΔL +0.06
- #A40002 · oklch(0.445 0.190 27.5) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?