HEX in OKLCH: #ABAB9C
Auch bekannt als: Tailwind olive-400
Ergebnis
#ABAB9C → oklch(0.737 0.021 106.9)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #abab9c. 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: 171/255 = 0.67059 → 0.407240 (((x + 0.055) / 1.055)^2.4) G: 171/255 = 0.67059 → 0.407240 (((x + 0.055) / 1.055)^2.4) B: 156/255 = 0.61176 → 0.332452 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.403393 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.399208 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.360125
3. cube root
l′ = ∛0.403393 = 0.738884 m′ = ∛0.399208 = 0.736320 s′ = ∛0.360125 = 0.711461
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.73696 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.00613 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.02017
5. Oklab → OKLCH
C = √(a² + b²) = 0.02108 H = atan2(b, a) = 106.906° L = 0.73696
6. OKLCH
oklch(0.73696 0.02108 106.906) rounded: oklch(0.737 0.021 106.9)
Alle Formate
- HEX
- #abab9c
- RGB
- rgb(171 171 156)
- RGB (legacy)
- rgb(171, 171, 156)
- HSL
- hsl(60.00 8.20% 64.12%) → hsl(60 8% 64%)
- HWB
- hwb(60 61% 33%)
- OKLCH
- oklch(0.737 0.021 106.9) · oklch(73.7% 0.021 106.9)
- OKLab
- oklab(0.737 -0.006 0.020)
- Lab (D50)
- lab(69.66 -2.02 7.76)
- LCH (D50)
- lch(69.66 8.02 104.57)
- Display P3
- color(display-p3 0.6706 0.6706 0.6173)
- Linear sRGB
- color(srgb-linear 0.4072 0.4072 0.3325)
Gamut: sRGB und Display P3
#ABAB9C 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.158, Display P3 von 0.183; diese Farbe nutzt 13 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #abab9c;
color: rgb(171 171 156);
color: hsl(60 8% 64%);
color: oklch(0.737 0.021 106.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.737 0.021 106.9);
}
/* arbitrary values */
class="text-[#abab9c] bg-[oklch(0.737_0.021_106.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6706 0.6706 0.6173); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #abab9c calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- darkgray#A9A9A9
- v3 stone-400#A8A29E
- v3 neutral-400#A3A3A3
- taupe-400#ABA09C
- stone-400#A6A09B
- mist-400#9CA8AB
- neutral-400#A1A1A1
- v3 zinc-400#A1A1AA
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #BEBEAF · oklch(0.797 0.021 106.9) · ΔL +0.06
- #98988A · oklch(0.677 0.021 106.9) · ΔL −0.06