#A796DB#A796DB

#A796DB is a light, moderate violet. Relative luminance 0.351; OKLCH L 71.4% C 0.100 H 295.0°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#A796DB
RGBrgb(167, 150, 219)
HSLhsl(255, 49%, 72%)
HSVhsv(255, 32%, 86%)
CMYKcmyk(23.7%, 31.5%, 0%, 14.1%)
CIE-LABlab(65.86, 20.68, -32.86)
CIE-LCHlch(65.86, 38.83, 302.18°)
OKLaboklab(71.37% 0.0425 -0.0909)
OKLCHoklch(71.37% 0.1 295)
XYZxyz(39.6259, 35.1422, 71.6996)
Luminance0.3514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A796DB #CADB96
analogous
#96A7DB #A796DB #CA96DB
triadic
#A796DB #DBA796 #96DBA7
tetradic
#A796DB #DB96A7 #CADB96 #96DBCA
square
#A796DB #DB96A7 #CADB96 #96DBCA
split-complementary
#A796DB #DBCA96 #A7DB96
monochromatic
#5D3FB8 #8168CB #A796DB #CDC4EB #ECE8F7

Accessibility & contrast

On white

2.62
#A796DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#A796DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A796DB
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A796DB#FFFFFF#000000##000000
##A796DB1.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A1DE
Deuteranopia (green-blind)
#879FD9
Tritanopia (blue-blind)
#9DA1AF
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a796db;
/* rgb */ color: rgb(167, 150, 219);
/* oklch */ color: oklch(71.4% 0.100 295.0);
Tailwind
colors: {
  custom: {
    50: '#c2b5e6',
    500: '#a796db',
    950: '#000000',
  },
}
SCSS
$custom: #a796db;
$custom-light: #c2b5e6;
$custom-dark: #000000;
JSON
{
  "hex": "#a796db",
  "rgb": {
    "r": 167,
    "g": 150,
    "b": 219
  },
  "hsl": {
    "h": 254.783,
    "s": 48.936,
    "l": 72.353
  },
  "oklch": {
    "l": 0.71371,
    "c": 0.10037,
    "h": 295
  },
  "luminance": 0.35143
}

Semantic roles & 50–950 ramp

primary
#A796DB
secondary
#EAEEDD
accent
#BC2998
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#121116
muted
#818084

Preview Lab

Preview with #A796DB

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

Preview Lab → · Contrast checker → · Palette generator →

#A796DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva