#796AAA#796AAA

#796AAA is a mid, moderate violet. Relative luminance 0.173; OKLCH L 56.5% C 0.098 H 293.8°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#796AAA
RGBrgb(121, 106, 170)
HSLhsl(254, 27%, 54%)
HSVhsv(254, 38%, 67%)
CMYKcmyk(28.8%, 37.6%, 0%, 33.3%)
CIE-LABlab(48.60, 20.37, -32.19)
CIE-LCHlch(48.60, 38.10, 302.32°)
OKLaboklab(56.49% 0.0396 -0.0898)
OKLCHoklch(56.49% 0.098 293.8)
XYZxyz(20.2931, 17.2750, 40.2877)
Luminance0.1727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AAA #9BAA6A
analogous
#6A7BAA #796AAA #996AAA
triadic
#796AAA #AA796A #6AAA79
tetradic
#796AAA #AA6A7B #9BAA6A #6AAA99
square
#796AAA #AA6A7B #9BAA6A #6AAA99
split-complementary
#796AAA #AA996A #7BAA6A
monochromatic
#423862 #5C4E89 #796AAA #9C91C0 #BFB8D6

Accessibility & contrast

On white

4.71
#796AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#796AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796AAA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AAA#FFFFFF#000000##FFFFFF
##796AAA1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5874AC
Deuteranopia (green-blind)
#5A72A8
Tritanopia (blue-blind)
#6E7582
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #796aaa;
/* rgb */ color: rgb(121, 106, 170);
/* oklch */ color: oklch(56.5% 0.098 293.8);
Tailwind
colors: {
  custom: {
    50: '#a194c3',
    500: '#796aaa',
    950: '#000000',
  },
}
SCSS
$custom: #796aaa;
$custom-light: #a194c3;
$custom-dark: #000000;
JSON
{
  "hex": "#796aaa",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 170
  },
  "hsl": {
    "h": 254.063,
    "s": 27.35,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56494,
    "c": 0.0981,
    "h": 293.8
  },
  "luminance": 0.17275
}

Semantic roles & 50–950 ramp

primary
#796AAA
secondary
#BFC6AA
accent
#C464AD
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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