HEX in OKLCH: #2A212C
Auch bekannt als: Tailwind mauve-800
Ergebnis
#2A212C → oklch(0.263 0.024 320.1)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #2a212c. 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: 42/255 = 0.16471 → 0.023153 (((x + 0.055) / 1.055)^2.4) G: 33/255 = 0.12941 → 0.015209 (((x + 0.055) / 1.055)^2.4) B: 44/255 = 0.17255 → 0.025187 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.018997 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.017964 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.022196
3. cube root
l′ = ∛0.018997 = 0.266826 m′ = ∛0.017964 = 0.261898 s′ = ∛0.022196 = 0.281034
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.26286 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.01837 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.01535
5. Oklab → OKLCH
C = √(a² + b²) = 0.02394 H = atan2(b, a) = 320.122° L = 0.26286
6. OKLCH
oklch(0.26286 0.02394 320.122) rounded: oklch(0.263 0.024 320.1)
Alle Formate
- HEX
- #2a212c
- RGB
- rgb(42 33 44)
- RGB (legacy)
- rgb(42, 33, 44)
- HSL
- hsl(289.09 14.29% 15.10%) → hsl(289 14% 15%)
- HWB
- hwb(289 13% 83%)
- OKLCH
- oklch(0.263 0.024 320.1) · oklch(26.3% 0.024 320.1)
- OKLab
- oklab(0.263 0.018 -0.015)
- Lab (D50)
- lab(14.16 6.34 -5.67)
- LCH (D50)
- lch(14.16 8.51 318.22)
- Display P3
- color(display-p3 0.1590 0.1307 0.1697)
- Linear sRGB
- color(srgb-linear 0.0232 0.0152 0.0252)
Gamut: sRGB und Display P3
#2A212C 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.126, Display P3 von 0.136; diese Farbe nutzt 19 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #2a212c;
color: rgb(42 33 44);
color: hsl(289 14% 15%);
color: oklch(0.263 0.024 320.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.263 0.024 320.1);
}
/* arbitrary values */
class="text-[#2a212c] bg-[oklch(0.263_0.024_320.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1590 0.1307 0.1697); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #2a212c calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- zinc-800#27272A
- stone-800#292524
- taupe-800#2B2422
- neutral-800#262626
- mist-800#22292B
- v3 gray-800#1F2937
- gray-800#1E2939
- v3 slate-800#1E293B
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #39303B · oklch(0.323 0.024 320.1) · ΔL +0.06
- #1C131D · oklch(0.203 0.024 320.1) · ΔL −0.06