#A797CB#A797CB

#A797CB is a light, moderate violet. Relative luminance 0.347; OKLCH L 70.9% C 0.077 H 298.5°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#A797CB
RGBrgb(167, 151, 203)
HSLhsl(258, 33%, 69%)
HSVhsv(258, 26%, 80%)
CMYKcmyk(17.7%, 25.6%, 0%, 20.4%)
CIE-LABlab(65.48, 16.41, -24.56)
CIE-LCHlch(65.48, 29.53, 303.75°)
OKLaboklab(70.88% 0.0366 -0.0673)
OKLCHoklch(70.88% 0.077 298.5)
XYZxyz(37.7802, 34.6603, 61.1881)
Luminance0.3466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797CB #BBCB97
analogous
#97A1CB #A797CB #C197CB
triadic
#A797CB #CBA797 #97CBA7
tetradic
#A797CB #CB97A1 #BBCB97 #97CBC1
square
#A797CB #CB97A1 #BBCB97 #97CBC1
split-complementary
#A797CB #CBC197 #A1CB97
monochromatic
#654D9A #846EB7 #A797CB #CAC0DF #ECE9F4

Accessibility & contrast

On white

2.65
#A797CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#A797CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797CB
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797CB#FFFFFF#000000##000000
##A797CB1.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C9FCD
Deuteranopia (green-blind)
#8E9FC9
Tritanopia (blue-blind)
#A19FA9
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a797cb;
/* rgb */ color: rgb(167, 151, 203);
/* oklch */ color: oklch(70.9% 0.077 298.5);
Tailwind
colors: {
  custom: {
    50: '#c1b5db',
    500: '#a797cb',
    950: '#000000',
  },
}
SCSS
$custom: #a797cb;
$custom-light: #c1b5db;
$custom-dark: #000000;
JSON
{
  "hex": "#a797cb",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 203
  },
  "hsl": {
    "h": 258.462,
    "s": 33.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.70875,
    "c": 0.07661,
    "h": 298.5
  },
  "luminance": 0.34661
}

Semantic roles & 50–950 ramp

primary
#A797CB
secondary
#E2E6D7
accent
#AC3989
background
#FBFBFD
surface
#F7F6FB
border
#D0D0D4
text
#121115
muted
#818083

Preview Lab

Preview with #A797CB

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

Preview Lab → · Contrast checker → · Palette generator →

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