#796DA2#796DA2

#796DA2 is a mid, moderate violet. Relative luminance 0.176; OKLCH L 56.7% C 0.081 H 294.0°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#796DA2
RGBrgb(121, 109, 162)
HSLhsl(254, 22%, 53%)
HSVhsv(254, 33%, 64%)
CMYKcmyk(25.3%, 32.7%, 0%, 36.5%)
CIE-LABlab(49.02, 16.51, -26.86)
CIE-LCHlch(49.02, 31.53, 301.57°)
OKLaboklab(56.69% 0.0332 -0.0744)
OKLCHoklch(56.69% 0.081 294)
XYZxyz(19.8738, 17.6106, 36.5276)
Luminance0.1761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DA2 #96A26D
analogous
#6D7BA2 #796DA2 #936DA2
triadic
#796DA2 #A2796D #6DA279
tetradic
#796DA2 #A26D7B #96A26D #6DA293
square
#796DA2 #A26D7B #96A26D #6DA293
split-complementary
#796DA2 #A2936D #7BA26D
monochromatic
#413A5B #5C5280 #796DA2 #9B92BA #BEB8D2

Accessibility & contrast

On white

4.64
#796DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#796DA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #796DA2
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DA2#FFFFFF#000000##FFFFFF
##796DA21.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6075A4
Deuteranopia (green-blind)
#6174A1
Tritanopia (blue-blind)
#717680
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #796da2;
/* rgb */ color: rgb(121, 109, 162);
/* oklch */ color: oklch(56.7% 0.081 294.0);
Tailwind
colors: {
  custom: {
    50: '#a097bd',
    500: '#796da2',
    950: '#000000',
  },
}
SCSS
$custom: #796da2;
$custom-light: #a097bd;
$custom-dark: #000000;
JSON
{
  "hex": "#796da2",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 162
  },
  "hsl": {
    "h": 253.585,
    "s": 22.176,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56692,
    "c": 0.08149,
    "h": 294
  },
  "luminance": 0.17611
}

Semantic roles & 50–950 ramp

primary
#796DA2
secondary
#BCC1AA
accent
#BF69AB
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #796DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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