HEX to HSL: #62748E

Also known as: Tailwind slate-500

Result

#62748E → hsl(215 18% 47%)

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. 1. RGB ÷ 255

    R = 0.3843
    G = 0.4549
    B = 0.5569
  2. 2. max, min, Δ

    max = 0.5569
    min = 0.3843
    Δ = max − min = 0.1725
  3. 3. L

    L = (max + min) / 2 = 0.4706 = 47.06%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.1833 = 18.33%
  5. 5. H

    max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.3843 − 0.4549) / 0.1725 + 4) = 215.45°
  6. 6. HSL

    hsl(215.45 18.33% 47.06%)

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).

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

All converters →

Guides: What is OKLCH?