#796AA2#796AA2

#796AA2 is a mid, moderate violet. Relative luminance 0.170; OKLCH L 56.1% C 0.087 H 295.8°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#796AA2
RGBrgb(121, 106, 162)
HSLhsl(256, 23%, 53%)
HSVhsv(256, 35%, 64%)
CMYKcmyk(25.3%, 34.6%, 0%, 36.5%)
CIE-LABlab(48.24, 18.31, -28.08)
CIE-LCHlch(48.24, 33.53, 303.11°)
OKLaboklab(56.09% 0.0377 -0.0779)
OKLCHoklch(56.09% 0.087 295.8)
XYZxyz(19.5593, 16.9815, 36.4227)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AA2 #93A26A
analogous
#6A77A2 #796AA2 #956AA2
triadic
#796AA2 #A2796A #6AA279
tetradic
#796AA2 #A26A77 #93A26A #6AA295
square
#796AA2 #A26A77 #93A26A #6AA295
split-complementary
#796AA2 #A2956A #77A26A
monochromatic
#41385A #5C4F7F #796AA2 #9B90BA #BDB5D1

Accessibility & contrast

On white

4.78
#796AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#796AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796AA2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AA2#FFFFFF#000000##FFFFFF
##796AA21.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C73A4
Deuteranopia (green-blind)
#5E72A1
Tritanopia (blue-blind)
#71737E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #796aa2;
/* rgb */ color: rgb(121, 106, 162);
/* oklch */ color: oklch(56.1% 0.087 295.8);
Tailwind
colors: {
  custom: {
    50: '#a194bd',
    500: '#796aa2',
    950: '#000000',
  },
}
SCSS
$custom: #796aa2;
$custom-light: #a194bd;
$custom-dark: #000000;
JSON
{
  "hex": "#796aa2",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 162
  },
  "hsl": {
    "h": 256.071,
    "s": 23.14,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56092,
    "c": 0.08653,
    "h": 295.8
  },
  "luminance": 0.16982
}

Semantic roles & 50–950 ramp

primary
#796AA2
secondary
#BAC0A8
accent
#C068A8
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #796AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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