RGB to HEX: #52525C

Also known as: Tailwind zinc-600

Result

rgb(82 82 92) → #52525C

Values are shown at full precision, so converting back gives exactly #52525c. 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 = 82 = 5×16 + 2 → 52
    G = 82 = 5×16 + 2 → 52
    B = 92 = 5×16 + 12 → 5C
  2. 2. pairs → HEX

    52 52 5C → #52525C

All formats

HEX
#52525c
RGB
rgb(82 82 92)
RGB (legacy)
rgb(82, 82, 92)
HSL
hsl(240.00 5.75% 34.12%) → hsl(240 6% 34%)
HWB
hwb(240 32% 64%)
OKLCH
oklch(0.442 0.016 285.7) · oklch(44.2% 0.016 285.7)
OKLab
oklab(0.442 0.004 -0.016)
Lab (D50)
lab(35.15 1.69 -5.85)
LCH (D50)
lch(35.15 6.09 286.11)
Display P3
color(display-p3 0.3216 0.3216 0.3575)
Linear sRGB
color(srgb-linear 0.0844 0.0844 0.1070)

Gamut: sRGB and Display P3

#52525C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.257 and Display P3 reaches 0.262; this color uses 6% of the sRGB chroma available.

CSS snippets

.element {
  color: #52525c;
  color: rgb(82 82 92);
  color: hsl(240 6% 34%);
  color: oklch(0.442 0.016 285.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.442 0.016 285.7);
}
/* arbitrary values */
class="text-[#52525c] bg-[oklch(0.442_0.016_285.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3216 0.3216 0.3575); }
}

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

  • #63636D · oklch(0.502 0.016 285.7) · ΔL +0.06
  • #42424B · oklch(0.382 0.016 285.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?