HSL to HEX: #708090

Also known as: CSS slategray, CSS slategrey

Result

hsl(210.00 12.60% 50.20%) → #708090

Values are shown at full precision, so converting back gives exactly #708090. 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 = 210.00°, S = 12.60%, L = 50.20%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.06275, 0.12550)
    R = round((0.00000 + 0.43925) × 255) = 112
    G = round((0.06275 + 0.43925) × 255) = 128
    B = round((0.12550 + 0.43925) × 255) = 144
  6. 6. RGB → HEX

    #708090

All formats

HEX
#708090
RGB
rgb(112 128 144)
RGB (legacy)
rgb(112, 128, 144)
HSL
hsl(210.00 12.60% 50.20%) → hsl(210 13% 50%)
HWB
hwb(210 44% 44%)
OKLCH
oklch(0.593 0.031 248.3) · oklch(59.3% 0.031 248.3)
OKLab
oklab(0.593 -0.011 -0.029)
Lab (D50)
lab(52.70 -3.28 -10.74)
LCH (D50)
lch(52.70 11.23 253.00)
Display P3
color(display-p3 0.4512 0.5000 0.5586)
Linear sRGB
color(srgb-linear 0.1620 0.2159 0.2789)

Gamut: sRGB and Display P3

#708090 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.161 and Display P3 reaches 0.208; this color uses 19% of the sRGB chroma available.

CSS snippets

.element {
  color: #708090;
  color: rgb(112 128 144);
  color: hsl(210 13% 50%);
  color: oklch(0.593 0.031 248.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.593 0.031 248.3);
}
/* arbitrary values */
class="text-[#708090] bg-[oklch(0.593_0.031_248.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4512 0.5000 0.5586); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #708090 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

  • #8292A2 · oklch(0.653 0.031 248.3) · ΔL +0.06
  • #5F6E7E · oklch(0.532 0.031 248.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?