HEX in HSL: #27272A
Auch bekannt als: Tailwind zinc-800, Tailwind v3 zinc-800
Ergebnis
#27272A → hsl(240 4% 16%)
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. RGB ÷ 255
R = 0.1529 G = 0.1529 B = 0.1647
2. max, min, Δ
max = 0.1647 min = 0.1529 Δ = max − min = 0.0118
3. L
L = (max + min) / 2 = 0.1588 = 15.88%
4. S
S = Δ / (1 − |2L − 1|) = 0.0370 = 3.70%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.1529 − 0.1529) / 0.0118 + 4) = 240.00°
6. HSL
hsl(240.00 3.70% 15.88%)
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