#A797CD#A797CD

#A797CD is a light, moderate violet. Relative luminance 0.348; OKLCH L 71.0% C 0.079 H 297.9°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#A797CD
RGBrgb(167, 151, 205)
HSLhsl(258, 35%, 70%)
HSVhsv(258, 26%, 80%)
CMYKcmyk(18.5%, 26.3%, 0%, 19.6%)
CIE-LABlab(65.56, 16.86, -25.55)
CIE-LCHlch(65.56, 30.62, 303.42°)
OKLaboklab(70.96% 0.0372 -0.0701)
OKLCHoklch(70.96% 0.079 297.9)
XYZxyz(38.0200, 34.7563, 62.4514)
Luminance0.3476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797CD #BDCD97
analogous
#97A2CD #A797CD #C297CD
triadic
#A797CD #CDA797 #97CDA7
tetradic
#A797CD #CD97A2 #BDCD97 #97CDC2
square
#A797CD #CD97A2 #BDCD97 #97CDC2
split-complementary
#A797CD #CDC297 #A2CD97
monochromatic
#644C9E #846EB9 #A797CD #CAC0E1 #EDEAF5

Accessibility & contrast

On white

2.64
#A797CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#A797CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797CD
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797CD#FFFFFF#000000##000000
##A797CD1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B9FCF
Deuteranopia (green-blind)
#8E9FCB
Tritanopia (blue-blind)
#A09FAA
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a797cd;
/* rgb */ color: rgb(167, 151, 205);
/* oklch */ color: oklch(71.0% 0.079 297.9);
Tailwind
colors: {
  custom: {
    50: '#c1b5dc',
    500: '#a797cd',
    950: '#000000',
  },
}
SCSS
$custom: #a797cd;
$custom-light: #c1b5dc;
$custom-dark: #000000;
JSON
{
  "hex": "#a797cd",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 205
  },
  "hsl": {
    "h": 257.778,
    "s": 35.065,
    "l": 69.804
  },
  "oklch": {
    "l": 0.70958,
    "c": 0.07937,
    "h": 297.9
  },
  "luminance": 0.34756
}

Semantic roles & 50–950 ramp

primary
#A797CD
secondary
#E3E8D8
accent
#AE388B
background
#FBFBFD
surface
#F7F6FB
border
#D0D0D4
text
#121115
muted
#818083

Preview Lab

Preview with #A797CD

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

Preview Lab → · Contrast checker → · Palette generator →

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