#A797DB#A797DB

#A797DB is a light, moderate violet. Relative luminance 0.355; OKLCH L 71.6% C 0.099 H 294.6°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#A797DB
RGBrgb(167, 151, 219)
HSLhsl(254, 49%, 73%)
HSVhsv(254, 31%, 86%)
CMYKcmyk(23.7%, 31.1%, 0%, 14.1%)
CIE-LABlab(66.11, 20.11, -32.48)
CIE-LCHlch(66.11, 38.20, 301.77°)
OKLaboklab(71.56% 0.0411 -0.0898)
OKLCHoklch(71.56% 0.099 294.6)
XYZxyz(39.7862, 35.4627, 71.7530)
Luminance0.3546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797DB #CBDB97
analogous
#97A9DB #A797DB #C997DB
triadic
#A797DB #DBA797 #97DBA7
tetradic
#A797DB #DB97A9 #CBDB97 #97DBC9
square
#A797DB #DB97A9 #CBDB97 #97DBC9
split-complementary
#A797DB #DBC997 #A9DB97
monochromatic
#5C40B8 #816ACB #A797DB #CDC4EB #ECE8F7

Accessibility & contrast

On white

2.59
#A797DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#A797DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797DB
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797DB#FFFFFF#000000##000000
##A797DB1.002.598.098.09
#FFFFFF2.591.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A1DE
Deuteranopia (green-blind)
#88A0D9
Tritanopia (blue-blind)
#9CA2AF
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a797db;
/* rgb */ color: rgb(167, 151, 219);
/* oklch */ color: oklch(71.6% 0.099 294.6);
Tailwind
colors: {
  custom: {
    50: '#c2b5e6',
    500: '#a797db',
    950: '#000000',
  },
}
SCSS
$custom: #a797db;
$custom-light: #c2b5e6;
$custom-dark: #000000;
JSON
{
  "hex": "#a797db",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 219
  },
  "hsl": {
    "h": 254.118,
    "s": 48.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.71561,
    "c": 0.09878,
    "h": 294.6
  },
  "luminance": 0.35463
}

Semantic roles & 50–950 ramp

primary
#A797DB
secondary
#EAEEDD
accent
#BC2A99
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#121116
muted
#818084

Preview Lab

Preview with #A797DB

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

Preview Lab → · Contrast checker → · Palette generator →

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