HEX naar HSL: #09090B
Ook bekend als: Tailwind zinc-950, Tailwind v3 zinc-950
Resultaat
#09090B → hsl(240 10% 4%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #09090b. 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.0353 G = 0.0353 B = 0.0431
2. max, min, Δ
max = 0.0431 min = 0.0353 Δ = max − min = 0.0078
3. L
L = (max + min) / 2 = 0.0392 = 3.92%
4. S
S = Δ / (1 − |2L − 1|) = 0.1000 = 10.00%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0353 − 0.0353) / 0.0078 + 4) = 240.00°
6. HSL
hsl(240.00 10.00% 3.92%)
Alle formaten
- HEX
- #09090b
- RGB
- rgb(9 9 11)
- RGB (legacy)
- rgb(9, 9, 11)
- HSL
- hsl(240.00 10.00% 3.92%) → hsl(240 10% 4%)
- HWB
- hwb(240 4% 96%)
- OKLCH
- oklch(0.141 0.004 285.8) · oklch(14.1% 0.004 285.8)
- OKLab
- oklab(0.141 0.001 -0.004)
- Lab (D50)
- lab(2.50 0.21 -0.77)
- LCH (D50)
- lch(2.50 0.80 285.25)
- Display P3
- color(display-p3 0.0353 0.0353 0.0425)
- Linear sRGB
- color(srgb-linear 0.0027 0.0027 0.0033)
Gamut: sRGB en Display P3
#09090B is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.082 en Display P3 van 0.083; deze kleur gebruikt 5% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #09090b;
color: rgb(9 9 11);
color: hsl(240 10% 4%);
color: oklch(0.141 0.004 285.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.141 0.004 285.8);
}
/* arbitrary values */
class="text-[#09090b] bg-[oklch(0.141_0.004_285.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0353 0.0353 0.0425); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #09090b calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- neutral-950#0A0A0A
- mauve-950#0C090C
- mist-950#090B0C
- stone-950#0C0A09
- olive-950#0C0C09
- gray-950#030712
- v3 slate-950#020617
- slate-950#020618
Lichter en donkerder, dezelfde tint en chroma
- #161618 · oklch(0.201 0.004 285.8) · ΔL +0.06
- #020202 · oklch(0.081 0.004 285.8) · ΔL −0.06