#796D97#796D97

#796D97 is a mid, moderate violet. Relative luminance 0.172; OKLCH L 56.2% C 0.065 H 297.4°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#796D97
RGBrgb(121, 109, 151)
HSLhsl(257, 17%, 51%)
HSVhsv(257, 28%, 59%)
CMYKcmyk(19.9%, 27.8%, 0%, 40.8%)
CIE-LABlab(48.56, 13.78, -21.11)
CIE-LCHlch(48.56, 25.21, 303.12°)
OKLaboklab(56.18% 0.03 -0.058)
OKLCHoklch(56.18% 0.065 297.4)
XYZxyz(18.9385, 17.2365, 31.6014)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D97 #8B976D
analogous
#6D7697 #796D97 #8E6D97
triadic
#796D97 #97796D #6D9779
tetradic
#796D97 #976D76 #8B976D #6D978E
square
#796D97 #976D76 #8B976D #6D978E
split-complementary
#796D97 #978E6D #76976D
monochromatic
#403950 #5C5374 #796D97 #9A91B0 #BBB4CA

Accessibility & contrast

On white

4.72
#796D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#796D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D97
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D97#FFFFFF#000000##FFFFFF
##796D971.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#647399
Deuteranopia (green-blind)
#657396
Tritanopia (blue-blind)
#73737C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #796d97;
/* rgb */ color: rgb(121, 109, 151);
/* oklch */ color: oklch(56.2% 0.065 297.4);
Tailwind
colors: {
  custom: {
    50: '#a096b5',
    500: '#796d97',
    950: '#000000',
  },
}
SCSS
$custom: #796d97;
$custom-light: #a096b5;
$custom-dark: #000000;
JSON
{
  "hex": "#796d97",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 151
  },
  "hsl": {
    "h": 257.143,
    "s": 16.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.56183,
    "c": 0.06533,
    "h": 297.4
  },
  "luminance": 0.17237
}

Semantic roles & 50–950 ramp

primary
#796D97
secondary
#B4B9A7
accent
#BA6EA4
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0D11
muted
#7E7E80

Preview Lab

Preview with #796D97

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

Preview Lab → · Contrast checker → · Palette generator →

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