HEX naar HSL: #0C090C
Ook bekend als: Tailwind mauve-950
Resultaat
#0C090C → hsl(300 14% 4%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #0c090c. De afgeronde vorm plak je gewoonlijk in CSS.
Stap-voor-stap berekening
Elk getal wordt uit de invoer berekend, er wordt niets opgezocht.
1. RGB ÷ 255
R = 0.0471 G = 0.0353 B = 0.0471
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.0353 − 0.0471) / 0.0118) mod 6) = 300.00°
6. HSL
hsl(300.00 14.29% 4.12%)
Alle formaten
- HEX
- #0c090c
- RGB
- rgb(12 9 12)
- RGB (legacy)
- rgb(12, 9, 12)
- HSL
- hsl(300.00 14.29% 4.12%) → hsl(300 14% 4%)
- HWB
- hwb(300 4% 95%)
- OKLCH
- oklch(0.145 0.008 326.0) · oklch(14.5% 0.008 326.0)
- OKLab
- oklab(0.145 0.007 -0.005)
- Lab (D50)
- lab(2.71 1.17 -0.88)
- LCH (D50)
- lch(2.71 1.46 322.95)
- Display P3
- color(display-p3 0.0451 0.0357 0.0463)
- Linear sRGB
- color(srgb-linear 0.0037 0.0027 0.0037)
Gamut: sRGB en Display P3
#0C090C is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.068 en Display P3 van 0.074; deze kleur gebruikt 12% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #0c090c;
color: rgb(12 9 12);
color: hsl(300 14% 4%);
color: oklch(0.145 0.008 326.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.145 0.008 326.0);
}
/* arbitrary values */
class="text-[#0c090c] bg-[oklch(0.145_0.008_326.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0451 0.0357 0.0463); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #0c090c calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- zinc-950#09090B
- neutral-950#0A0A0A
- stone-950#0C0A09
- mist-950#090B0C
- olive-950#0C0C09
- gray-950#030712
- v3 slate-950#020617
- slate-950#020618
Lichter en donkerder, dezelfde tint en chroma
- #191619 · oklch(0.205 0.008 326.0) · ΔL +0.06
- #030203 · oklch(0.085 0.008 326.0) · ΔL −0.06