HEX naar HSL: #7E2A0C
Ook bekend als: Tailwind orange-900
Resultaat
#7E2A0C → hsl(16 83% 27%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #7e2a0c. 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.4941 G = 0.1647 B = 0.0471
2. max, min, Δ
max = 0.4941 min = 0.0471 Δ = max − min = 0.4471
3. L
L = (max + min) / 2 = 0.2706 = 27.06%
4. S
S = Δ / (1 − |2L − 1|) = 0.8261 = 82.61%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.1647 − 0.0471) / 0.4471) mod 6) = 15.79°
6. HSL
hsl(15.79 82.61% 27.06%)
Alle formaten
- HEX
- #7e2a0c
- RGB
- rgb(126 42 12)
- RGB (legacy)
- rgb(126, 42, 12)
- HSL
- hsl(15.79 82.61% 27.06%) → hsl(16 83% 27%)
- HWB
- hwb(16 5% 51%)
- OKLCH
- oklch(0.407 0.123 38.0) · oklch(40.7% 0.123 38.0)
- OKLab
- oklab(0.407 0.097 0.076)
- Lab (D50)
- lab(30.22 36.03 37.43)
- LCH (D50)
- lch(30.22 51.96 46.09)
- Display P3
- color(display-p3 0.4562 0.1874 0.0903)
- Linear sRGB
- color(srgb-linear 0.2086 0.0232 0.0037)
Gamut: sRGB en Display P3
#7E2A0C is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.133 en Display P3 van 0.150; deze kleur gebruikt 92% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #7e2a0c;
color: rgb(126 42 12);
color: hsl(16 83% 27%);
color: oklch(0.407 0.123 38.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.407 0.123 38.0);
}
/* arbitrary values */
class="text-[#7e2a0c] bg-[oklch(0.407_0.123_38.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4562 0.1874 0.0903); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #7e2a0c calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 orange-900#7C2D12
- amber-900#7B3306
- v3 amber-900#78350F
- v3 red-900#7F1D1D
- red-900#82181A
- darkred#8B0000
- yellow-900#733E0A
- maroon#800000
Lichter en donkerder, dezelfde tint en chroma
- #913C20 · oklch(0.467 0.123 38.0) · ΔL +0.06
- #6B1700 · oklch(0.347 0.123 38.0) · ΔL −0.06