#796FA4#796FA4

#796FA4 is a mid, moderate violet. Relative luminance 0.181; OKLCH L 57.2% C 0.081 H 292.3°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#796FA4
RGBrgb(121, 111, 164)
HSLhsl(251, 23%, 54%)
HSVhsv(251, 32%, 64%)
CMYKcmyk(26.2%, 32.3%, 0%, 35.7%)
CIE-LABlab(49.63, 15.82, -27.08)
CIE-LCHlch(49.63, 31.36, 300.29°)
OKLaboklab(57.19% 0.0308 -0.075)
OKLCHoklch(57.19% 0.081 292.3)
XYZxyz(20.2688, 18.1139, 37.5432)
Luminance0.1811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FA4 #9AA46F
analogous
#6F80A4 #796FA4 #946FA4
triadic
#796FA4 #A4796F #6FA479
tetradic
#796FA4 #A46F80 #9AA46F #6FA494
square
#796FA4 #A46F80 #9AA46F #6FA494
split-complementary
#796FA4 #A4946F #80A46F
monochromatic
#423B5E #5C5383 #796FA4 #9C95BC #BFBAD3

Accessibility & contrast

On white

4.54
#796FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#796FA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FA4
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FA4#FFFFFF#000000##000000
##796FA41.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6177A6
Deuteranopia (green-blind)
#6275A3
Tritanopia (blue-blind)
#707882
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796fa4;
/* rgb */ color: rgb(121, 111, 164);
/* oklch */ color: oklch(57.2% 0.081 292.3);
Tailwind
colors: {
  custom: {
    50: '#a198bf',
    500: '#796fa4',
    950: '#000000',
  },
}
SCSS
$custom: #796fa4;
$custom-light: #a198bf;
$custom-dark: #000000;
JSON
{
  "hex": "#796fa4",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 164
  },
  "hsl": {
    "h": 251.321,
    "s": 22.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.57192,
    "c": 0.08111,
    "h": 292.3
  },
  "luminance": 0.18114
}

Semantic roles & 50–950 ramp

primary
#796FA4
secondary
#BEC3AC
accent
#BF69AF
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #796FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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