#796CA2#796CA2

#796CA2 is a mid, moderate violet. Relative luminance 0.174; OKLCH L 56.5% C 0.083 H 294.6°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#796CA2
RGBrgb(121, 108, 162)
HSLhsl(254, 23%, 53%)
HSVhsv(254, 33%, 64%)
CMYKcmyk(25.3%, 33.3%, 0%, 36.5%)
CIE-LABlab(48.76, 17.11, -27.27)
CIE-LCHlch(48.76, 32.19, 302.10°)
OKLaboklab(56.49% 0.0347 -0.0756)
OKLCHoklch(56.49% 0.083 294.6)
XYZxyz(19.7678, 17.3985, 36.4922)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CA2 #95A26C
analogous
#6C7AA2 #796CA2 #946CA2
triadic
#796CA2 #A2796C #6CA279
tetradic
#796CA2 #A26C7A #95A26C #6CA294
square
#796CA2 #A26C7A #95A26C #6CA294
split-complementary
#796CA2 #A2946C #7AA26C
monochromatic
#41395A #5C5180 #796CA2 #9B91BA #BDB7D1

Accessibility & contrast

On white

4.69
#796CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#796CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796CA2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CA2#FFFFFF#000000##FFFFFF
##796CA21.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E74A4
Deuteranopia (green-blind)
#6073A1
Tritanopia (blue-blind)
#717580
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #796ca2;
/* rgb */ color: rgb(121, 108, 162);
/* oklch */ color: oklch(56.5% 0.083 294.6);
Tailwind
colors: {
  custom: {
    50: '#a196bd',
    500: '#796ca2',
    950: '#000000',
  },
}
SCSS
$custom: #796ca2;
$custom-light: #a196bd;
$custom-dark: #000000;
JSON
{
  "hex": "#796ca2",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 162
  },
  "hsl": {
    "h": 254.444,
    "s": 22.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56491,
    "c": 0.08316,
    "h": 294.6
  },
  "luminance": 0.17399
}

Semantic roles & 50–950 ramp

primary
#796CA2
secondary
#BBC1A9
accent
#BF69AA
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #796CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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