HEX naar HSL: #79716B
Ook bekend als: Tailwind stone-500
Resultaat
#79716B → hsl(26 6% 45%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #79716b. 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.4745 G = 0.4431 B = 0.4196
2. max, min, Δ
max = 0.4745 min = 0.4196 Δ = max − min = 0.0549
3. L
L = (max + min) / 2 = 0.4471 = 44.71%
4. S
S = Δ / (1 − |2L − 1|) = 0.0614 = 6.14%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.4431 − 0.4196) / 0.0549) mod 6) = 25.71°
6. HSL
hsl(25.71 6.14% 44.71%)
Alle formaten
- HEX
- #79716b
- RGB
- rgb(121 113 107)
- RGB (legacy)
- rgb(121, 113, 107)
- HSL
- hsl(25.71 6.14% 44.71%) → hsl(26 6% 45%)
- HWB
- hwb(26 42% 53%)
- OKLCH
- oklch(0.554 0.014 59.4) · oklch(55.4% 0.014 59.4)
- OKLab
- oklab(0.554 0.007 0.012)
- Lab (D50)
- lab(48.24 2.37 4.51)
- LCH (D50)
- lch(48.24 5.10 62.29)
- Display P3
- color(display-p3 0.4691 0.4442 0.4224)
- Linear sRGB
- color(srgb-linear 0.1912 0.1651 0.1470)
Gamut: sRGB en Display P3
#79716B is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.131 en Display P3 van 0.149; deze kleur gebruikt 10% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #79716b;
color: rgb(121 113 107);
color: hsl(26 6% 45%);
color: oklch(0.554 0.014 59.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.554 0.014 59.4);
}
/* arbitrary values */
class="text-[#79716b] bg-[oklch(0.554_0.014_59.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4691 0.4442 0.4224); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #79716b calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 stone-500#78716C
- taupe-500#7C6D67
- neutral-500#737373
- v3 zinc-500#71717A
- zinc-500#71717B
- mist-500#67787C
- olive-500#7C7C67
- dimgray#696969
Lichter en donkerder, dezelfde tint en chroma
- #8B837C · oklch(0.614 0.014 59.4) · ΔL +0.06
- #68605A · oklch(0.494 0.014 59.4) · ΔL −0.06