RGB to HEX: #5B4F4B

Also known as: Tailwind taupe-600

Result

rgb(91 79 75) → #5B4F4B

Values are shown at full precision, so converting back gives exactly #5b4f4b. 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 = 91 = 5×16 + 11 → 5B
    G = 79 = 4×16 + 15 → 4F
    B = 75 = 4×16 + 11 → 4B
  2. 2. pairs → HEX

    5B 4F 4B → #5B4F4B

All formats

HEX
#5b4f4b
RGB
rgb(91 79 75)
RGB (legacy)
rgb(91, 79, 75)
HSL
hsl(15.00 9.64% 32.55%) → hsl(15 10% 33%)
HWB
hwb(15 29% 64%)
OKLCH
oklch(0.438 0.017 39.3) · oklch(43.8% 0.017 39.3)
OKLab
oklab(0.438 0.013 0.011)
Lab (D50)
lab(34.72 4.60 4.30)
LCH (D50)
lch(34.72 6.29 43.09)
Display P3
color(display-p3 0.3491 0.3115 0.2965)
Linear sRGB
color(srgb-linear 0.1046 0.0782 0.0704)

Gamut: sRGB and Display P3

#5B4F4B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.139 and Display P3 reaches 0.158; this color uses 12% of the sRGB chroma available.

CSS snippets

.element {
  color: #5b4f4b;
  color: rgb(91 79 75);
  color: hsl(15 10% 33%);
  color: oklch(0.438 0.017 39.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.438 0.017 39.3);
}
/* arbitrary values */
class="text-[#5b4f4b] bg-[oklch(0.438_0.017_39.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3491 0.3115 0.2965); }
}

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

  • #6C605B · oklch(0.498 0.017 39.3) · ΔL +0.06
  • #4A3F3B · oklch(0.378 0.017 39.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?