#796C8A#796C8A

#796C8A is a mid, muted violet. Relative luminance 0.166; OKLCH L 55.4% C 0.048 H 304.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#796C8A
RGBrgb(121, 108, 138)
HSLhsl(266, 12%, 48%)
HSVhsv(266, 22%, 54%)
CMYKcmyk(12.3%, 21.7%, 0%, 45.9%)
CIE-LABlab(47.78, 11.32, -14.60)
CIE-LCHlch(47.78, 18.47, 307.78°)
OKLaboklab(55.42% 0.0273 -0.0397)
OKLCHoklch(55.42% 0.048 304.6)
XYZxyz(17.8343, 16.6251, 26.3092)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C8A #7D8A6C
analogous
#6C6E8A #796C8A #886C8A
triadic
#796C8A #8A796C #6C8A79
tetradic
#796C8A #8A6C6E #7D8A6C #6C8A88
square
#796C8A #8A6C6E #7D8A6C #6C8A88
split-complementary
#796C8A #8A886C #6E8A6C
monochromatic
#3D3645 #5B5168 #796C8A #988DA6 #B7B0C1

Accessibility & contrast

On white

4.86
#796C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#796C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C8A
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C8A#FFFFFF#000000##FFFFFF
##796C8A1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#67718B
Deuteranopia (green-blind)
#697189
Tritanopia (blue-blind)
#777076
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #796c8a;
/* rgb */ color: rgb(121, 108, 138);
/* oklch */ color: oklch(55.4% 0.048 304.6);
Tailwind
colors: {
  custom: {
    50: '#a096ac',
    500: '#796c8a',
    950: '#000000',
  },
}
SCSS
$custom: #796c8a;
$custom-light: #a096ac;
$custom-dark: #000000;
JSON
{
  "hex": "#796c8a",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 138
  },
  "hsl": {
    "h": 266,
    "s": 12.195,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5542,
    "c": 0.04818,
    "h": 304.6
  },
  "luminance": 0.16625
}

Semantic roles & 50–950 ramp

primary
#796C8A
secondary
#AAB0A2
accent
#B57398
background
#F9F9FA
surface
#F2F1F4
border
#CCCBCE
text
#0E0D10
muted
#7E7E7F

Preview Lab

Preview with #796C8A

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#796C8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva