HEX naar HSL: #1D1D16
Ook bekend als: Tailwind olive-900
Resultaat
#1D1D16 → hsl(60 14% 10%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #1d1d16. 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.1137 G = 0.1137 B = 0.0863
2. max, min, Δ
max = 0.1137 min = 0.0863 Δ = max − min = 0.0275
3. L
L = (max + min) / 2 = 0.1000 = 10.00%
4. S
S = Δ / (1 − |2L − 1|) = 0.1373 = 13.73%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.1137 − 0.0863) / 0.0275) mod 6) = 60.00°
6. HSL
hsl(60.00 13.73% 10.00%)
Alle formaten
- HEX
- #1d1d16
- RGB
- rgb(29 29 22)
- RGB (legacy)
- rgb(29, 29, 22)
- HSL
- hsl(60.00 13.73% 10.00%) → hsl(60 14% 10%)
- HWB
- hwb(60 9% 89%)
- OKLCH
- oklch(0.228 0.013 107.4) · oklch(22.8% 0.013 107.4)
- OKLab
- oklab(0.228 -0.004 0.012)
- Lab (D50)
- lab(10.58 -1.20 4.85)
- LCH (D50)
- lch(10.58 5.00 103.90)
- Display P3
- color(display-p3 0.1137 0.1137 0.0890)
- Linear sRGB
- color(srgb-linear 0.0123 0.0123 0.0080)
Gamut: sRGB en Display P3
#1D1D16 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.049 en Display P3 van 0.057; deze kleur gebruikt 27% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #1d1d16;
color: rgb(29 29 22);
color: hsl(60 14% 10%);
color: oklch(0.228 0.013 107.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.228 0.013 107.4);
}
/* arbitrary values */
class="text-[#1d1d16] bg-[oklch(0.228_0.013_107.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1137 0.1137 0.0890); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #1d1d16 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- stone-900#1C1917
- taupe-900#1D1816
- mist-900#161B1D
- zinc-900#18181B
- neutral-900#171717
- mauve-900#1D161E
- taupe-800#2B2422
- stone-800#292524
Lichter en donkerder, dezelfde tint en chroma
- #2B2B24 · oklch(0.288 0.013 107.4) · ΔL +0.06
- #100F09 · oklch(0.168 0.013 107.4) · ΔL −0.06