#796EAA#796EAA

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

Color values

HEX#796EAA
RGBrgb(121, 110, 170)
HSLhsl(251, 26%, 55%)
HSVhsv(251, 35%, 67%)
CMYKcmyk(28.8%, 35.3%, 0%, 33.3%)
CIE-LABlab(49.64, 17.97, -30.58)
CIE-LCHlch(49.64, 35.47, 300.44°)
OKLaboklab(57.29% 0.0338 -0.0851)
OKLCHoklch(57.29% 0.092 291.7)
XYZxyz(20.7150, 18.1187, 40.4283)
Luminance0.1812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796EAA #9FAA6E
analogous
#6E81AA #796EAA #976EAA
triadic
#796EAA #AA796E #6EAA79
tetradic
#796EAA #AA6E81 #9FAA6E #6EAA97
square
#796EAA #AA6E81 #9FAA6E #6EAA97
split-complementary
#796EAA #AA976E #81AA6E
monochromatic
#423A63 #5B518A #796EAA #9D95C1 #C0BBD7

Accessibility & contrast

On white

4.54
#796EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#796EAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796EAA
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796EAA#FFFFFF#000000##000000
##796EAA1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E77AC
Deuteranopia (green-blind)
#5E75A8
Tritanopia (blue-blind)
#6E7884
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796eaa;
/* rgb */ color: rgb(121, 110, 170);
/* oklch */ color: oklch(57.3% 0.092 291.7);
Tailwind
colors: {
  custom: {
    50: '#a197c3',
    500: '#796eaa',
    950: '#000000',
  },
}
SCSS
$custom: #796eaa;
$custom-light: #a197c3;
$custom-dark: #000000;
JSON
{
  "hex": "#796eaa",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 170
  },
  "hsl": {
    "h": 251,
    "s": 26.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.57285,
    "c": 0.09156,
    "h": 291.7
  },
  "luminance": 0.18119
}

Semantic roles & 50–950 ramp

primary
#796EAA
secondary
#C2C7AD
accent
#C265B1
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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