HEX naar HSL: #62748E
Ook bekend als: Tailwind slate-500
Resultaat
#62748E → hsl(215 18% 47%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #62748e. 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.3843 G = 0.4549 B = 0.5569
2. max, min, Δ
max = 0.5569 min = 0.3843 Δ = max − min = 0.1725
3. L
L = (max + min) / 2 = 0.4706 = 47.06%
4. S
S = Δ / (1 − |2L − 1|) = 0.1833 = 18.33%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.3843 − 0.4549) / 0.1725 + 4) = 215.45°
6. HSL
hsl(215.45 18.33% 47.06%)
Alle formaten
- HEX
- #62748e
- RGB
- rgb(98 116 142)
- RGB (legacy)
- rgb(98, 116, 142)
- HSL
- hsl(215.45 18.33% 47.06%) → hsl(215 18% 47%)
- HWB
- hwb(215 38% 44%)
- OKLCH
- oklch(0.554 0.046 257.5) · oklch(55.4% 0.046 257.5)
- OKLab
- oklab(0.554 -0.010 -0.045)
- Lab (D50)
- lab(48.11 -2.01 -16.58)
- LCH (D50)
- lch(48.11 16.71 263.10)
- Display P3
- color(display-p3 0.3980 0.4528 0.5478)
- Linear sRGB
- color(srgb-linear 0.1221 0.1746 0.2705)
Gamut: sRGB en Display P3
#62748E is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.201 en Display P3 van 0.255; deze kleur gebruikt 23% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #62748e;
color: rgb(98 116 142);
color: hsl(215 18% 47%);
color: oklch(0.554 0.046 257.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.554 0.046 257.5);
}
/* arbitrary values */
class="text-[#62748e] bg-[oklch(0.554_0.046_257.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3980 0.4528 0.5478); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #62748e calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 slate-500#64748B
- gray-500#6A7282
- v3 gray-500#6B7280
- zinc-500#71717B
- v3 zinc-500#71717A
- mist-500#67787C
- slategray#708090
- mauve-500#79697B
Lichter en donkerder, dezelfde tint en chroma
- #7386A0 · oklch(0.614 0.046 257.5) · ΔL +0.06
- #51637C · oklch(0.494 0.046 257.5) · ΔL −0.06