#796FA7#796FA7

#796FA7 is a mid, moderate violet. Relative luminance 0.182; OKLCH L 57.3% C 0.086 H 291.7°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#796FA7
RGBrgb(121, 111, 167)
HSLhsl(251, 24%, 55%)
HSVhsv(251, 34%, 65%)
CMYKcmyk(27.5%, 33.5%, 0%, 34.5%)
CIE-LABlab(49.77, 16.59, -28.63)
CIE-LCHlch(49.77, 33.09, 300.09°)
OKLaboklab(57.34% 0.0316 -0.0795)
OKLCHoklch(57.34% 0.086 291.7)
XYZxyz(20.5429, 18.2235, 38.9869)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FA7 #9DA76F
analogous
#6F81A7 #796FA7 #956FA7
triadic
#796FA7 #A7796F #6FA779
tetradic
#796FA7 #A76F81 #9DA76F #6FA795
square
#796FA7 #A76F81 #9DA76F #6FA795
split-complementary
#796FA7 #A7956F #81A76F
monochromatic
#423B61 #5C5287 #796FA7 #9C95BE #C0BBD5

Accessibility & contrast

On white

4.52
#796FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#796FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FA7
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FA7#FFFFFF#000000##000000
##796FA71.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6077A9
Deuteranopia (green-blind)
#6175A6
Tritanopia (blue-blind)
#6F7983
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796fa7;
/* rgb */ color: rgb(121, 111, 167);
/* oklch */ color: oklch(57.3% 0.086 291.7);
Tailwind
colors: {
  custom: {
    50: '#a198c1',
    500: '#796fa7',
    950: '#000000',
  },
}
SCSS
$custom: #796fa7;
$custom-light: #a198c1;
$custom-dark: #000000;
JSON
{
  "hex": "#796fa7",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 167
  },
  "hsl": {
    "h": 250.714,
    "s": 24.138,
    "l": 54.51
  },
  "oklch": {
    "l": 0.57337,
    "c": 0.08553,
    "h": 291.7
  },
  "luminance": 0.18224
}

Semantic roles & 50–950 ramp

primary
#796FA7
secondary
#C1C5AD
accent
#C167B1
background
#FAF9FB
surface
#F3F2F7
border
#CDCCD0
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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