RGB to HEX: #4A5565

Also known as: Tailwind gray-600

Result

rgb(74 85 101) → #4A5565

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. base 10 → base 16

    R = 74 = 4×16 + 10 → 4A
    G = 85 = 5×16 + 5 → 55
    B = 101 = 6×16 + 5 → 65
  2. 2. pairs → HEX

    4A 55 65 → #4A5565

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?