HEX in OKLCH: #E5E7EB
Auch bekannt als: Tailwind gray-200, Tailwind v3 gray-200
Ergebnis
#E5E7EB → oklch(0.928 0.006 264.5)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #e5e7eb. 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: 229/255 = 0.89804 → 0.783538 (((x + 0.055) / 1.055)^2.4) G: 231/255 = 0.90588 → 0.799103 (((x + 0.055) / 1.055)^2.4) B: 235/255 = 0.92157 → 0.830770 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.794316 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.799205 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.817678
3. cube root
l′ = ∛0.794316 = 0.926114 m′ = ∛0.799205 = 0.928010 s′ = ∛0.817678 = 0.935106
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.92758 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.00055 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.00579
5. Oklab → OKLCH
C = √(a² + b²) = 0.00581 H = atan2(b, a) = 264.531° L = 0.92758
6. OKLCH
oklch(0.92758 0.00581 264.531) rounded: oklch(0.928 0.006 264.5)
Alle Formate
- HEX
- #e5e7eb
- RGB
- rgb(229 231 235)
- RGB (legacy)
- rgb(229, 231, 235)
- HSL
- hsl(220.00 13.04% 90.98%) → hsl(220 13% 91%)
- HWB
- hwb(220 90% 8%)
- OKLCH
- oklch(0.928 0.006 264.5) · oklch(92.8% 0.006 264.5)
- OKLab
- oklab(0.928 -0.001 -0.006)
- Lab (D50)
- lab(91.58 -0.15 -2.20)
- LCH (D50)
- lch(91.58 2.20 265.98)
- Display P3
- color(display-p3 0.8994 0.9056 0.9200)
- Linear sRGB
- color(srgb-linear 0.7835 0.7991 0.8308)
Gamut: sRGB und Display P3
#E5E7EB 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.035, Display P3 von 0.038; diese Farbe nutzt 17 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #e5e7eb;
color: rgb(229 231 235);
color: hsl(220 13% 91%);
color: oklch(0.928 0.006 264.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.928 0.006 264.5);
}
/* arbitrary values */
class="text-[#e5e7eb] bg-[oklch(0.928_0.006_264.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8994 0.9056 0.9200); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #e5e7eb calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- mist-200#E3E7E8
- slate-200#E2E8F0
- mauve-200#E7E4E7
- neutral-200#E5E5E5
- zinc-200#E4E4E7
- stone-200#E7E5E4
- taupe-200#E8E4E3
- olive-200#E8E8E3
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #F9FBFF · oklch(0.988 0.006 264.5) · ΔL +0.06
- #D1D3D7 · oklch(0.868 0.006 264.5) · ΔL −0.06