#796FA2#796FA2

#796FA2 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.1% C 0.078 H 292.7°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#796FA2
RGBrgb(121, 111, 162)
HSLhsl(252, 22%, 54%)
HSVhsv(252, 31%, 64%)
CMYKcmyk(25.3%, 31.5%, 0%, 36.5%)
CIE-LABlab(49.55, 15.31, -26.05)
CIE-LCHlch(49.55, 30.21, 300.44°)
OKLaboklab(57.1% 0.0302 -0.0721)
OKLCHoklch(57.1% 0.078 292.7)
XYZxyz(20.0896, 18.0422, 36.5995)
Luminance0.1804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FA2 #98A26F
analogous
#6F7EA2 #796FA2 #926FA2
triadic
#796FA2 #A2796F #6FA279
tetradic
#796FA2 #A26F7E #98A26F #6FA292
square
#796FA2 #A26F7E #98A26F #6FA292
split-complementary
#796FA2 #A2926F #7EA26F
monochromatic
#413B5C #5C5381 #796FA2 #9C94BA #BEB9D2

Accessibility & contrast

On white

4.56
#796FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#796FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FA2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FA2#FFFFFF#000000##000000
##796FA21.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6276A4
Deuteranopia (green-blind)
#6375A1
Tritanopia (blue-blind)
#707881
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796fa2;
/* rgb */ color: rgb(121, 111, 162);
/* oklch */ color: oklch(57.1% 0.078 292.7);
Tailwind
colors: {
  custom: {
    50: '#a098bd',
    500: '#796fa2',
    950: '#000000',
  },
}
SCSS
$custom: #796fa2;
$custom-light: #a098bd;
$custom-dark: #000000;
JSON
{
  "hex": "#796fa2",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 162
  },
  "hsl": {
    "h": 251.765,
    "s": 21.519,
    "l": 53.529
  },
  "oklch": {
    "l": 0.57097,
    "c": 0.07817,
    "h": 292.7
  },
  "luminance": 0.18042
}

Semantic roles & 50–950 ramp

primary
#796FA2
secondary
#BDC1AB
accent
#BE6AAE
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #796FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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