HEX to HSL: #4A5565

Also known as: Tailwind gray-600

Result

#4A5565 → hsl(216 15% 34%)

Values are shown at full precision, so converting back gives exactly #4a5565. 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.2902
    G = 0.3333
    B = 0.3961
  2. 2. max, min, Δ

    max = 0.3961
    min = 0.2902
    Δ = max − min = 0.1059
  3. 3. L

    L = (max + min) / 2 = 0.3431 = 34.31%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.1543 = 15.43%
  5. 5. H

    max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.2902 − 0.3333) / 0.1059 + 4) = 215.56°
  6. 6. HSL

    hsl(215.56 15.43% 34.31%)

All formats

HEX
#4a5565
RGB
rgb(74 85 101)
RGB (legacy)
rgb(74, 85, 101)
HSL
hsl(215.56 15.43% 34.31%) → hsl(216 15% 34%)
HWB
hwb(216 29% 60%)
OKLCH
oklch(0.446 0.030 257.7) · oklch(44.6% 0.030 257.7)
OKLab
oklab(0.446 -0.006 -0.029)
Lab (D50)
lab(35.64 -1.43 -10.82)
LCH (D50)
lch(35.64 10.91 262.47)
Display P3
color(display-p3 0.2984 0.3320 0.3904)
Linear sRGB
color(srgb-linear 0.0685 0.0908 0.1301)

Gamut: sRGB and Display P3

#4A5565 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.163 and Display P3 reaches 0.207; this color uses 18% of the sRGB chroma available.

CSS snippets

.element {
  color: #4a5565;
  color: rgb(74 85 101);
  color: hsl(216 15% 34%);
  color: oklch(0.446 0.030 257.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.446 0.030 257.7);
}
/* arbitrary values */
class="text-[#4a5565] bg-[oklch(0.446_0.030_257.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2984 0.3320 0.3904); }
}

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

  • #5A6676 · oklch(0.506 0.030 257.7) · ΔL +0.06
  • #3A4554 · oklch(0.386 0.030 257.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?