HEX naar HSL: #161B1D
Ook bekend als: Tailwind mist-900
Resultaat
#161B1D → hsl(197 14% 10%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #161b1d. 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.0863 G = 0.1059 B = 0.1137
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 B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0863 − 0.1059) / 0.0275 + 4) = 197.14°
6. HSL
hsl(197.14 13.73% 10.00%)
Alle formaten
- HEX
- #161b1d
- RGB
- rgb(22 27 29)
- RGB (legacy)
- rgb(22, 27, 29)
- HSL
- hsl(197.14 13.73% 10.00%) → hsl(197 14% 10%)
- HWB
- hwb(197 9% 89%)
- OKLCH
- oklch(0.218 0.008 223.9) · oklch(21.8% 0.008 223.9)
- OKLab
- oklab(0.218 -0.006 -0.006)
- Lab (D50)
- lab(9.31 -1.99 -2.23)
- LCH (D50)
- lch(9.31 2.99 228.19)
- Display P3
- color(display-p3 0.0900 0.1053 0.1128)
- Linear sRGB
- color(srgb-linear 0.0080 0.0110 0.0123)
Gamut: sRGB en Display P3
#161B1D is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.041 en Display P3 van 0.054; deze kleur gebruikt 21% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #161b1d;
color: rgb(22 27 29);
color: hsl(197 14% 10%);
color: oklch(0.218 0.008 223.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.218 0.008 223.9);
}
/* arbitrary values */
class="text-[#161b1d] bg-[oklch(0.218_0.008_223.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0900 0.1053 0.1128); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #161b1d calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- zinc-900#18181B
- stone-900#1C1917
- neutral-900#171717
- taupe-900#1D1816
- olive-900#1D1D16
- mauve-900#1D161E
- v3 gray-900#111827
- gray-900#101828
Lichter en donkerder, dezelfde tint en chroma
- #24292B · oklch(0.278 0.008 223.9) · ΔL +0.06
- #090E0F · oklch(0.158 0.008 223.9) · ΔL −0.06