HEX to RGB: #62748E
Also known as: Tailwind slate-500
Result
#62748E → rgb(98 116 142)
Values are shown at full precision, so converting back gives exactly #62748e. 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. HEX → pairs
#62748E → 62 | 74 | 8E
2. base 16 → base 10
R = 62₁₆ = 6×16 + 2 = 98 G = 74₁₆ = 7×16 + 4 = 116 B = 8E₁₆ = 8×16 + 14 = 142
3. RGB
rgb(98 116 142)
All formats
- 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 and Display P3
#62748E is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.201 and Display P3 reaches 0.255; this color uses 23% of the sRGB chroma available.
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); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- 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
Lighter and darker, same hue and chroma
- #7386A0 · oklch(0.614 0.046 257.5) · ΔL +0.06
- #51637C · oklch(0.494 0.046 257.5) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?