#A797DC#A797DC

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

Color values

HEX#A797DC
RGBrgb(167, 151, 220)
HSLhsl(254, 50%, 73%)
HSVhsv(254, 31%, 86%)
CMYKcmyk(24.1%, 31.4%, 0%, 13.7%)
CIE-LABlab(66.15, 20.35, -32.97)
CIE-LCHlch(66.15, 38.74, 301.69°)
OKLaboklab(71.61% 0.0413 -0.0912)
OKLCHoklch(71.61% 0.1 294.4)
XYZxyz(39.9182, 35.5156, 72.4484)
Luminance0.3552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797DC #CCDC97
analogous
#97A9DC #A797DC #C997DC
triadic
#A797DC #DCA797 #97DCA7
tetradic
#A797DC #DC97A9 #CCDC97 #97DCC9
square
#A797DC #DC97A9 #CCDC97 #97DCC9
split-complementary
#A797DC #DCC997 #A9DC97
monochromatic
#5B3FBA #8069CD #A797DC #CEC5EB #ECE8F7

Accessibility & contrast

On white

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

On black

8.10
#A797DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797DC
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797DC#FFFFFF#000000##000000
##A797DC1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A1DF
Deuteranopia (green-blind)
#88A0DA
Tritanopia (blue-blind)
#9CA2B0
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a797dc;
/* rgb */ color: rgb(167, 151, 220);
/* oklch */ color: oklch(71.6% 0.100 294.4);
Tailwind
colors: {
  custom: {
    50: '#c2b5e7',
    500: '#a797dc',
    950: '#000000',
  },
}
SCSS
$custom: #a797dc;
$custom-light: #c2b5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#a797dc",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 253.913,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71606,
    "c": 0.10017,
    "h": 294.4
  },
  "luminance": 0.35516
}

Semantic roles & 50–950 ramp

primary
#A797DC
secondary
#EAEEDD
accent
#BD299B
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#121116
muted
#818084

Preview Lab

Preview with #A797DC

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

Preview Lab → · Contrast checker → · Palette generator →

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