HEX in OKLCH: #161B1D
Auch bekannt als: Tailwind mist-900
Ergebnis
#161B1D → oklch(0.218 0.008 223.9)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #161b1d. Die gerundete Form fügst du üblicherweise in CSS ein.
Rechenweg Schritt für Schritt
Jede Zahl wird aus der Eingabe berechnet, nichts ist nachgeschlagen.
1. sRGB → linear
R: 22/255 = 0.08627 → 0.008023 (((x + 0.055) / 1.055)^2.4) G: 27/255 = 0.10588 → 0.010960 (((x + 0.055) / 1.055)^2.4) B: 29/255 = 0.11373 → 0.012286 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.009818 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.010480 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.011536
3. cube root
l′ = ∛0.009818 = 0.214126 m′ = ∛0.010480 = 0.218838 s′ = ∛0.011536 = 0.225955
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.21782 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.00611 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.00588
5. Oklab → OKLCH
C = √(a² + b²) = 0.00848 H = atan2(b, a) = 223.872° L = 0.21782
6. OKLCH
oklch(0.21782 0.00848 223.872) rounded: oklch(0.218 0.008 223.9)
Alle Formate
- 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 und Display P3
#161B1D ist eine Hex-Farbe und liegt damit in sRGB und folglich in Display P3. Bei dieser Helligkeit und diesem Farbton erreicht sRGB eine Chroma von 0.041, Display P3 von 0.054; diese Farbe nutzt 21 % der verfügbaren 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); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- 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
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #24292B · oklch(0.278 0.008 223.9) · ΔL +0.06
- #090E0F · oklch(0.158 0.008 223.9) · ΔL −0.06