HEX to HSL: #64748B
Also known as: Tailwind v3 slate-500
Result
#64748B → hsl(215 16% 47%)
Values are shown at full precision, so converting back gives exactly #64748b. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. RGB ÷ 255
R = 0.3922 G = 0.4549 B = 0.5451
2. max, min, Δ
max = 0.5451 min = 0.3922 Δ = max − min = 0.1529
3. L
L = (max + min) / 2 = 0.4686 = 46.86%
4. S
S = Δ / (1 − |2L − 1|) = 0.1632 = 16.32%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.3922 − 0.4549) / 0.1529 + 4) = 215.38°
6. HSL
hsl(215.38 16.32% 46.86%)
All formats
- HEX
- #64748b
- RGB
- rgb(100 116 139)
- RGB (legacy)
- rgb(100, 116, 139)
- HSL
- hsl(215.38 16.32% 46.86%) → hsl(215 16% 47%)
- HWB
- hwb(215 39% 45%)
- OKLCH
- oklch(0.554 0.041 257.4) · oklch(55.4% 0.041 257.4)
- OKLab
- oklab(0.554 -0.009 -0.040)
- Lab (D50)
- lab(48.16 -1.93 -14.72)
- LCH (D50)
- lch(48.16 14.85 262.54)
- Display P3
- color(display-p3 0.4042 0.4530 0.5370)
- Linear sRGB
- color(srgb-linear 0.1274 0.1746 0.2582)
Gamut: sRGB and Display P3
#64748B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.200 and Display P3 reaches 0.254; this color uses 20% of the sRGB chroma available.
CSS snippets
.element {
color: #64748b;
color: rgb(100 116 139);
color: hsl(215 16% 47%);
color: oklch(0.554 0.041 257.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.554 0.041 257.4);
}
/* arbitrary values */
class="text-[#64748b] bg-[oklch(0.554_0.041_257.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4042 0.4530 0.5370); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #64748b calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- slate-500#62748E
- gray-500#6A7282
- v3 gray-500#6B7280
- zinc-500#71717B
- v3 zinc-500#71717A
- mist-500#67787C
- slategray#708090
- neutral-500#737373
Lighter and darker, same hue and chroma
- #75869D · oklch(0.614 0.041 257.4) · ΔL +0.06
- #536379 · oklch(0.494 0.041 257.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?