HEX naar HSL: #991B1B
Ook bekend als: Tailwind v3 red-800
Resultaat
#991B1B → hsl(0 70% 35%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #991b1b. De afgeronde vorm plak je gewoonlijk in CSS.
Stap-voor-stap berekening
Elk getal wordt uit de invoer berekend, er wordt niets opgezocht.
1. RGB ÷ 255
R = 0.6000 G = 0.1059 B = 0.1059
2. max, min, Δ
max = 0.6000 min = 0.1059 Δ = max − min = 0.4941
3. L
L = (max + min) / 2 = 0.3529 = 35.29%
4. S
S = Δ / (1 − |2L − 1|) = 0.7000 = 70.00%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.1059 − 0.1059) / 0.4941) mod 6) = 0.00°
6. HSL
hsl(0.00 70.00% 35.29%)
Alle formaten
- HEX
- #991b1b
- RGB
- rgb(153 27 27)
- RGB (legacy)
- rgb(153, 27, 27)
- HSL
- hsl(0.00 70.00% 35.29%) → hsl(0 70% 35%)
- HWB
- hwb(0 11% 40%)
- OKLCH
- oklch(0.444 0.161 26.9) · oklch(44.4% 0.161 26.9)
- OKLab
- oklab(0.444 0.144 0.073)
- Lab (D50)
- lab(33.86 50.80 35.41)
- LCH (D50)
- lch(33.86 61.92 34.88)
- Display P3
- color(display-p3 0.5506 0.1567 0.1344)
- Linear sRGB
- color(srgb-linear 0.3185 0.0110 0.0110)
Gamut: sRGB en Display P3
#991B1B is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.181 en Display P3 van 0.204; deze kleur gebruikt 89% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #991b1b;
color: rgb(153 27 27);
color: hsl(0 70% 35%);
color: oklch(0.444 0.161 26.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.444 0.161 26.9);
}
/* arbitrary values */
class="text-[#991b1b] bg-[oklch(0.444_0.161_26.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5506 0.1567 0.1344); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #991b1b calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- red-800#9F0712
- brown#A52A2A
- orange-800#9F2D00
- v3 rose-800#9F1239
- v3 orange-800#9A3412
- darkred#8B0000
- rose-800#A50036
- red-900#82181A
Lichter en donkerder, dezelfde tint en chroma
- #AE322D · oklch(0.504 0.161 26.9) · ΔL +0.06
- #850006 · oklch(0.384 0.161 26.9) · ΔL −0.06