HEX naar HSL: #474739
Ook bekend als: Tailwind olive-700
Resultaat
#474739 → hsl(60 11% 25%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #474739. 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.2784 G = 0.2784 B = 0.2235
2. max, min, Δ
max = 0.2784 min = 0.2235 Δ = max − min = 0.0549
3. L
L = (max + min) / 2 = 0.2510 = 25.10%
4. S
S = Δ / (1 − |2L − 1|) = 0.1094 = 10.94%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.2784 − 0.2235) / 0.0549) mod 6) = 60.00°
6. HSL
hsl(60.00 10.94% 25.10%)
Alle formaten
- HEX
- #474739
- RGB
- rgb(71 71 57)
- RGB (legacy)
- rgb(71, 71, 57)
- HSL
- hsl(60.00 10.94% 25.10%) → hsl(60 11% 25%)
- HWB
- hwb(60 22% 72%)
- OKLCH
- oklch(0.394 0.023 107.4) · oklch(39.4% 0.023 107.4)
- OKLab
- oklab(0.394 -0.007 0.022)
- Lab (D50)
- lab(29.83 -2.09 8.47)
- LCH (D50)
- lch(29.83 8.73 103.88)
- Display P3
- color(display-p3 0.2784 0.2784 0.2291)
- Linear sRGB
- color(srgb-linear 0.0630 0.0630 0.0409)
Gamut: sRGB en Display P3
#474739 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.085 en Display P3 van 0.098; deze kleur gebruikt 27% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #474739;
color: rgb(71 71 57);
color: hsl(60 11% 25%);
color: oklch(0.394 0.023 107.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.394 0.023 107.4);
}
/* arbitrary values */
class="text-[#474739] bg-[oklch(0.394_0.023_107.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2784 0.2784 0.2291); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #474739 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- stone-700#44403B
- v3 stone-700#44403C
- neutral-700#404040
- mist-700#394447
- taupe-700#473C39
- zinc-700#3F3F46
- darkslategray#2F4F4F
- taupe-600#5B4F4B
Lichter en donkerder, dezelfde tint en chroma
- #575749 · oklch(0.454 0.023 107.4) · ΔL +0.06
- #37372A · oklch(0.334 0.023 107.4) · ΔL −0.06