#796EA2#796EA2

#796EA2 is a mid, moderate violet. Relative luminance 0.178; OKLCH L 56.9% C 0.080 H 293.4°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#796EA2
RGBrgb(121, 110, 162)
HSLhsl(253, 22%, 53%)
HSVhsv(253, 32%, 64%)
CMYKcmyk(25.3%, 32.1%, 0%, 36.5%)
CIE-LABlab(49.28, 15.91, -26.46)
CIE-LCHlch(49.28, 30.87, 301.02°)
OKLaboklab(56.89% 0.0317 -0.0732)
OKLCHoklch(56.89% 0.08 293.4)
XYZxyz(19.9811, 17.8252, 36.5633)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796EA2 #97A26E
analogous
#6E7DA2 #796EA2 #936EA2
triadic
#796EA2 #A2796E #6EA279
tetradic
#796EA2 #A26E7D #97A26E #6EA293
square
#796EA2 #A26E7D #97A26E #6EA293
split-complementary
#796EA2 #A2936E #7DA26E
monochromatic
#413A5B #5C5280 #796EA2 #9B93BA #BEB9D2

Accessibility & contrast

On white

4.60
#796EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#796EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #796EA2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796EA2#FFFFFF#000000##FFFFFF
##796EA21.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6176A4
Deuteranopia (green-blind)
#6274A1
Tritanopia (blue-blind)
#707781
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #796ea2;
/* rgb */ color: rgb(121, 110, 162);
/* oklch */ color: oklch(56.9% 0.080 293.4);
Tailwind
colors: {
  custom: {
    50: '#a097bd',
    500: '#796ea2',
    950: '#000000',
  },
}
SCSS
$custom: #796ea2;
$custom-light: #a097bd;
$custom-dark: #000000;
JSON
{
  "hex": "#796ea2",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 162
  },
  "hsl": {
    "h": 252.692,
    "s": 21.849,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56894,
    "c": 0.07982,
    "h": 293.4
  },
  "luminance": 0.17825
}

Semantic roles & 50–950 ramp

primary
#796EA2
secondary
#BCC1AB
accent
#BE69AC
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #796EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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