HSL in HEX: #0A0A0A
Auch bekannt als: Tailwind neutral-950, Tailwind v3 neutral-950
Ergebnis
hsl(0.00 0.00% 3.92%) → #0A0A0A
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #0a0a0a. 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. input
H = 0.00°, S = 0.00%, L = 3.92%
2. C
C = (1 − |2L − 1|) × S = 0.00000
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00000 (H / 60° = 0.0000, sector 0)
4. m
m = L − C / 2 = 0.03920
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.00000, 0.00000) R = round((0.00000 + 0.03920) × 255) = 10 G = round((0.00000 + 0.03920) × 255) = 10 B = round((0.00000 + 0.03920) × 255) = 10
6. RGB → HEX
#0A0A0A
Alle Formate
- HEX
- #0a0a0a
- RGB
- rgb(10 10 10)
- RGB (legacy)
- rgb(10, 10, 10)
- HSL
- hsl(0.00 0.00% 3.92%) → hsl(0 0% 4%)
- HWB
- hwb(0 4% 96%)
- OKLCH
- oklch(0.145 0.000 0.0) · oklch(14.5% 0.000 0.0)
- OKLab
- oklab(0.145 0.000 0.000)
- Lab (D50)
- lab(2.74 0.00 0.00)
- LCH (D50)
- lch(2.74 0.00 0.00)
- Display P3
- color(display-p3 0.0392 0.0392 0.0392)
- Linear sRGB
- color(srgb-linear 0.0030 0.0030 0.0030)
Gamut: sRGB und Display P3
#0A0A0A 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.059, Display P3 von 0.066; diese Farbe nutzt 0 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #0a0a0a;
color: rgb(10 10 10);
color: hsl(0 0% 4%);
color: oklch(0.145 0.000 0.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.145 0.000 0.0);
}
/* arbitrary values */
class="text-[#0a0a0a] bg-[oklch(0.145_0.000_0.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0392 0.0392 0.0392); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #0a0a0a calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- stone-950#0C0A09
- mist-950#090B0C
- zinc-950#09090B
- mauve-950#0C090C
- olive-950#0C0C09
- gray-950#030712
- v3 slate-950#020617
- slate-950#020618
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #171717 · oklch(0.205 0.000 0.0) · ΔL +0.06
- #020202 · oklch(0.085 0.000 0.0) · ΔL −0.06