HEX in OKLCH: #E4E4E7
Auch bekannt als: Tailwind zinc-200, Tailwind v3 zinc-200
Ergebnis
#E4E4E7 → oklch(0.920 0.004 286.3)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #e4e4e7. 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: 228/255 = 0.89412 → 0.775822 (((x + 0.055) / 1.055)^2.4) G: 228/255 = 0.89412 → 0.775822 (((x + 0.055) / 1.055)^2.4) B: 231/255 = 0.90588 → 0.799103 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.777020 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.778322 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.790488
3. cube root
l′ = ∛0.777020 = 0.919343 m′ = ∛0.778322 = 0.919856 s′ = ∛0.790488 = 0.924624
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.91973 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00113 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.00387
5. Oklab → OKLCH
C = √(a² + b²) = 0.00403 H = atan2(b, a) = 286.320° L = 0.91973
6. OKLCH
oklch(0.91973 0.00403 286.320) rounded: oklch(0.920 0.004 286.3)
Alle Formate
- HEX
- #e4e4e7
- RGB
- rgb(228 228 231)
- RGB (legacy)
- rgb(228, 228, 231)
- HSL
- hsl(240.00 5.88% 90.00%) → hsl(240 6% 90%)
- HWB
- hwb(240 89% 9%)
- OKLCH
- oklch(0.920 0.004 286.3) · oklch(92.0% 0.004 286.3)
- OKLab
- oklab(0.920 0.001 -0.004)
- Lab (D50)
- lab(90.65 0.40 -1.47)
- LCH (D50)
- lch(90.65 1.52 285.35)
- Display P3
- color(display-p3 0.8941 0.8941 0.9048)
- Linear sRGB
- color(srgb-linear 0.7758 0.7758 0.7991)
Gamut: sRGB und Display P3
#E4E4E7 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.040, Display P3 von 0.045; diese Farbe nutzt 10 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #e4e4e7;
color: rgb(228 228 231);
color: hsl(240 6% 90%);
color: oklch(0.920 0.004 286.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.920 0.004 286.3);
}
/* arbitrary values */
class="text-[#e4e4e7] bg-[oklch(0.920_0.004_286.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8941 0.8941 0.9048); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #e4e4e7 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- mauve-200#E7E4E7
- neutral-200#E5E5E5
- stone-200#E7E5E4
- taupe-200#E8E4E3
- mist-200#E3E7E8
- gray-200#E5E7EB
- slate-200#E2E8F0
- olive-200#E8E8E3
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #F8F8FB · oklch(0.980 0.004 286.3) · ΔL +0.06
- #D0D0D3 · oklch(0.860 0.004 286.3) · ΔL −0.06