#796CA1#796CA1

#796CA1 is a mid, moderate violet. Relative luminance 0.174; OKLCH L 56.4% C 0.082 H 294.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#796CA1
RGBrgb(121, 108, 161)
HSLhsl(255, 22%, 53%)
HSVhsv(255, 33%, 63%)
CMYKcmyk(24.8%, 32.9%, 0%, 36.9%)
CIE-LABlab(48.71, 16.86, -26.75)
CIE-LCHlch(48.71, 31.62, 302.21°)
OKLaboklab(56.44% 0.0344 -0.0741)
OKLCHoklch(56.44% 0.082 294.9)
XYZxyz(19.6792, 17.3631, 36.0259)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CA1 #94A16C
analogous
#6C79A1 #796CA1 #936CA1
triadic
#796CA1 #A1796C #6CA179
tetradic
#796CA1 #A16C79 #94A16C #6CA193
square
#796CA1 #A16C79 #94A16C #6CA193
split-complementary
#796CA1 #A1936C #79A16C
monochromatic
#413959 #5C517F #796CA1 #9B91B9 #BDB7D1

Accessibility & contrast

On white

4.70
#796CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#796CA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796CA1
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CA1#FFFFFF#000000##FFFFFF
##796CA11.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F74A3
Deuteranopia (green-blind)
#6073A0
Tritanopia (blue-blind)
#71757F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #796ca1;
/* rgb */ color: rgb(121, 108, 161);
/* oklch */ color: oklch(56.4% 0.082 294.9);
Tailwind
colors: {
  custom: {
    50: '#a096bd',
    500: '#796ca1',
    950: '#000000',
  },
}
SCSS
$custom: #796ca1;
$custom-light: #a096bd;
$custom-dark: #000000;
JSON
{
  "hex": "#796ca1",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 161
  },
  "hsl": {
    "h": 254.717,
    "s": 21.992,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56443,
    "c": 0.0817,
    "h": 294.9
  },
  "luminance": 0.17363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #796CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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