RGB to HEX: #79697B

Also known as: Tailwind mauve-500

Result

rgb(121 105 123) → #79697B

Values are shown at full precision, so converting back gives exactly #79697b. 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 = 121 = 7×16 + 9 → 79
    G = 105 = 6×16 + 9 → 69
    B = 123 = 7×16 + 11 → 7B
  2. 2. pairs → HEX

    79 69 7B → #79697B

All formats

HEX
#79697b
RGB
rgb(121 105 123)
RGB (legacy)
rgb(121, 105, 123)
HSL
hsl(293.33 7.89% 44.71%) → hsl(293 8% 45%)
HWB
hwb(293 41% 52%)
OKLCH
oklch(0.542 0.034 322.5) · oklch(54.2% 0.034 322.5)
OKLab
oklab(0.542 0.027 -0.020)
Lab (D50)
lab(46.42 9.16 -7.61)
LCH (D50)
lch(46.42 11.91 320.27)
Display P3
color(display-p3 0.4641 0.4140 0.4775)
Linear sRGB
color(srgb-linear 0.1912 0.1413 0.1981)

Gamut: sRGB and Display P3

#79697B 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.278; this color uses 13% of the sRGB chroma available.

CSS snippets

.element {
  color: #79697b;
  color: rgb(121 105 123);
  color: hsl(293 8% 45%);
  color: oklch(0.542 0.034 322.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.542 0.034 322.5);
}
/* arbitrary values */
class="text-[#79697b] bg-[oklch(0.542_0.034_322.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4641 0.4140 0.4775); }
}

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

  • #8B7A8D · oklch(0.602 0.034 322.5) · ΔL +0.06
  • #68586A · oklch(0.482 0.034 322.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?