RGB to HEX: #594C5B

Also known as: Tailwind mauve-600

Result

rgb(89 76 91) → #594C5B

Values are shown at full precision, so converting back gives exactly #594c5b. 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 = 89 = 5×16 + 9 → 59
    G = 76 = 4×16 + 12 → 4C
    B = 91 = 5×16 + 11 → 5B
  2. 2. pairs → HEX

    59 4C 5B → #594C5B

All formats

HEX
#594c5b
RGB
rgb(89 76 91)
RGB (legacy)
rgb(89, 76, 91)
HSL
hsl(292.00 8.98% 32.75%) → hsl(292 9% 33%)
HWB
hwb(292 30% 64%)
OKLCH
oklch(0.435 0.029 321.8) · oklch(43.5% 0.029 321.8)
OKLab
oklab(0.435 0.023 -0.018)
Lab (D50)
lab(34.06 7.92 -6.74)
LCH (D50)
lch(34.06 10.41 319.60)
Display P3
color(display-p3 0.3406 0.2999 0.3529)
Linear sRGB
color(srgb-linear 0.0999 0.0723 0.1046)

Gamut: sRGB and Display P3

#594C5B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.207 and Display P3 reaches 0.224; this color uses 14% of the sRGB chroma available.

CSS snippets

.element {
  color: #594c5b;
  color: rgb(89 76 91);
  color: hsl(292 9% 33%);
  color: oklch(0.435 0.029 321.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.435 0.029 321.8);
}
/* arbitrary values */
class="text-[#594c5b] bg-[oklch(0.435_0.029_321.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3406 0.2999 0.3529); }
}

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

  • #6A5D6C · oklch(0.495 0.029 321.8) · ΔL +0.06
  • #493C4B · oklch(0.375 0.029 321.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?