HEX in OKLCH: #27272A
Auch bekannt als: Tailwind zinc-800, Tailwind v3 zinc-800
Ergebnis
#27272A → oklch(0.274 0.005 286.0)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #27272a. 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: 39/255 = 0.15294 → 0.020289 (((x + 0.055) / 1.055)^2.4) G: 39/255 = 0.15294 → 0.020289 (((x + 0.055) / 1.055)^2.4) B: 42/255 = 0.16471 → 0.023153 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.020436 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.020596 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.022093
3. cube root
l′ = ∛0.020436 = 0.273400 m′ = ∛0.020596 = 0.274113 s′ = ∛0.022093 = 0.280600
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.27394 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00151 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.00526
5. Oklab → OKLCH
C = √(a² + b²) = 0.00548 H = atan2(b, a) = 286.033° L = 0.27394
6. OKLCH
oklch(0.27394 0.00548 286.033) rounded: oklch(0.274 0.005 286.0)
Alle Formate
- HEX
- #27272a
- RGB
- rgb(39 39 42)
- RGB (legacy)
- rgb(39, 39, 42)
- HSL
- hsl(240.00 3.70% 15.88%) → hsl(240 4% 16%)
- HWB
- hwb(240 15% 84%)
- OKLCH
- oklch(0.274 0.005 286.0) · oklch(27.4% 0.005 286.0)
- OKLab
- oklab(0.274 0.002 -0.005)
- Lab (D50)
- lab(15.73 0.56 -1.98)
- LCH (D50)
- lch(15.73 2.06 285.72)
- Display P3
- color(display-p3 0.1529 0.1529 0.1637)
- Linear sRGB
- color(srgb-linear 0.0203 0.0203 0.0232)
Gamut: sRGB und Display P3
#27272A 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.159, Display P3 von 0.162; diese Farbe nutzt 3 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #27272a;
color: rgb(39 39 42);
color: hsl(240 4% 16%);
color: oklch(0.274 0.005 286.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.274 0.005 286.0);
}
/* arbitrary values */
class="text-[#27272a] bg-[oklch(0.274_0.005_286.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1529 0.1529 0.1637); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #27272a calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- neutral-800#262626
- mist-800#22292B
- stone-800#292524
- taupe-800#2B2422
- mauve-800#2A212C
- olive-800#2B2B22
- v3 gray-800#1F2937
- gray-800#1E2939
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #363639 · oklch(0.334 0.005 286.0) · ΔL +0.06
- #19191C · oklch(0.214 0.005 286.0) · ΔL −0.06