HEX in HSL: #030712
Auch bekannt als: Tailwind gray-950, Tailwind v3 gray-950
Ergebnis
#030712 → hsl(224 71% 4%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #030712. 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.0118 G = 0.0275 B = 0.0706
2. max, min, Δ
max = 0.0706 min = 0.0118 Δ = max − min = 0.0588
3. L
L = (max + min) / 2 = 0.0412 = 4.12%
4. S
S = Δ / (1 − |2L − 1|) = 0.7143 = 71.43%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0118 − 0.0275) / 0.0588 + 4) = 224.00°
6. HSL
hsl(224.00 71.43% 4.12%)
Alle Formate
- HEX
- #030712
- RGB
- rgb(3 7 18)
- RGB (legacy)
- rgb(3, 7, 18)
- HSL
- hsl(224.00 71.43% 4.12%) → hsl(224 71% 4%)
- HWB
- hwb(224 1% 93%)
- OKLCH
- oklch(0.130 0.027 261.7) · oklch(13.0% 0.027 261.7)
- OKLab
- oklab(0.130 -0.004 -0.027)
- Lab (D50)
- lab(1.89 0.25 -5.31)
- LCH (D50)
- lch(1.89 5.31 272.75)
- Display P3
- color(display-p3 0.0145 0.0269 0.0673)
- Linear sRGB
- color(srgb-linear 0.0009 0.0021 0.0060)
Gamut: sRGB und Display P3
#030712 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.073; diese Farbe nutzt 47 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #030712;
color: rgb(3 7 18);
color: hsl(224 71% 4%);
color: oklch(0.130 0.027 261.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.130 0.027 261.7);
}
/* arbitrary values */
class="text-[#030712] bg-[oklch(0.130_0.027_261.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0145 0.0269 0.0673); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #030712 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 slate-950#020617
- slate-950#020618
- zinc-950#09090B
- mauve-950#0C090C
- mist-950#090B0C
- neutral-950#0A0A0A
- stone-950#0C0A09
- olive-950#0C0C09
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #0D1420 · oklch(0.190 0.027 261.7) · ΔL +0.06
- #000106 · oklch(0.070 0.027 261.7) · ΔL −0.06