HEX naar HSL: #71717B
Ook bekend als: Tailwind zinc-500
Resultaat
#71717B → hsl(240 4% 46%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #71717b. 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.4431 G = 0.4431 B = 0.4824
2. max, min, Δ
max = 0.4824 min = 0.4431 Δ = max − min = 0.0392
3. L
L = (max + min) / 2 = 0.4627 = 46.27%
4. S
S = Δ / (1 − |2L − 1|) = 0.0424 = 4.24%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.4431 − 0.4431) / 0.0392 + 4) = 240.00°
6. HSL
hsl(240.00 4.24% 46.27%)
Alle formaten
- HEX
- #71717b
- RGB
- rgb(113 113 123)
- RGB (legacy)
- rgb(113, 113, 123)
- HSL
- hsl(240.00 4.24% 46.27%) → hsl(240 4% 46%)
- HWB
- hwb(240 44% 52%)
- OKLCH
- oklch(0.552 0.015 285.9) · oklch(55.2% 0.015 285.9)
- OKLab
- oklab(0.552 0.004 -0.015)
- Lab (D50)
- lab(47.90 1.58 -5.54)
- LCH (D50)
- lch(47.90 5.76 285.90)
- Display P3
- color(display-p3 0.4431 0.4431 0.4790)
- Linear sRGB
- color(srgb-linear 0.1651 0.1651 0.1981)
Gamut: sRGB en Display P3
#71717B is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.261 en Display P3 van 0.280; deze kleur gebruikt 6% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #71717b;
color: rgb(113 113 123);
color: hsl(240 4% 46%);
color: oklch(0.552 0.015 285.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.552 0.015 285.9);
}
/* arbitrary values */
class="text-[#71717b] bg-[oklch(0.552_0.015_285.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4431 0.4431 0.4790); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #71717b calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 zinc-500#71717A
- v3 gray-500#6B7280
- gray-500#6A7282
- neutral-500#737373
- mist-500#67787C
- v3 stone-500#78716C
- mauve-500#79697B
- stone-500#79716B
Lichter en donkerder, dezelfde tint en chroma
- #83838D · oklch(0.612 0.015 285.9) · ΔL +0.06
- #60606A · oklch(0.492 0.015 285.9) · ΔL −0.06