HSL to HEX: #64748B

Also known as: Tailwind v3 slate-500

Result

hsl(215.38 16.32% 46.86%) → #64748B

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. 1. input

    H = 215.38°, S = 16.32%, L = 46.86%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.15295
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.06276   (H / 60° = 3.5897, sector 3)
  4. 4. m

    m = L − C / 2 = 0.39212
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.00000, 0.06276, 0.15295)
    R = round((0.00000 + 0.39212) × 255) = 100
    G = round((0.06276 + 0.39212) × 255) = 116
    B = round((0.15295 + 0.39212) × 255) = 139
  6. 6. RGB → HEX

    #64748B

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

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

All converters →

Guides: What is OKLCH?