HEX in HSL: #0C0C09
Auch bekannt als: Tailwind olive-950
Ergebnis
#0C0C09 → hsl(60 14% 4%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #0c0c09. 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.0471 G = 0.0471 B = 0.0353
2. max, min, Δ
max = 0.0471 min = 0.0353 Δ = max − min = 0.0118
3. L
L = (max + min) / 2 = 0.0412 = 4.12%
4. S
S = Δ / (1 − |2L − 1|) = 0.1429 = 14.29%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.0471 − 0.0353) / 0.0118) mod 6) = 60.00°
6. HSL
hsl(60.00 14.29% 4.12%)
Alle Formate
- HEX
- #0c0c09
- RGB
- rgb(12 12 9)
- RGB (legacy)
- rgb(12, 12, 9)
- HSL
- hsl(60.00 14.29% 4.12%) → hsl(60 14% 4%)
- HWB
- hwb(60 4% 95%)
- OKLCH
- oklch(0.153 0.006 107.1) · oklch(15.3% 0.006 107.1)
- OKLab
- oklab(0.153 -0.002 0.006)
- Lab (D50)
- lab(3.27 -0.32 1.18)
- LCH (D50)
- lch(3.27 1.23 105.25)
- Display P3
- color(display-p3 0.0471 0.0471 0.0364)
- Linear sRGB
- color(srgb-linear 0.0037 0.0037 0.0027)
Gamut: sRGB und Display P3
#0C0C09 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.033, Display P3 von 0.038; diese Farbe nutzt 19 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #0c0c09;
color: rgb(12 12 9);
color: hsl(60 14% 4%);
color: oklch(0.153 0.006 107.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.153 0.006 107.1);
}
/* arbitrary values */
class="text-[#0c0c09] bg-[oklch(0.153_0.006_107.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0471 0.0471 0.0364); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #0c0c09 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- stone-950#0C0A09
- neutral-950#0A0A0A
- mist-950#090B0C
- mauve-950#0C090C
- zinc-950#09090B
- gray-950#030712
- neutral-900#171717
- v3 slate-950#020617
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #191916 · oklch(0.213 0.006 107.1) · ΔL +0.06
- #030302 · oklch(0.093 0.006 107.1) · ΔL −0.06