#A797EA#A797EA

#A797EA is a light, moderate violet. Relative luminance 0.363; OKLCH L 72.3% C 0.119 H 292.0°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#A797EA
RGBrgb(167, 151, 234)
HSLhsl(252, 66%, 75%)
HSVhsv(252, 35%, 92%)
CMYKcmyk(28.6%, 35.5%, 0%, 8.2%)
CIE-LABlab(66.74, 23.75, -39.77)
CIE-LCHlch(66.74, 46.32, 300.84°)
OKLaboklab(72.25% 0.0447 -0.1108)
OKLCHoklch(72.25% 0.119 292)
XYZxyz(41.8505, 36.2885, 82.6254)
Luminance0.3629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797EA #DAEA97
analogous
#97B0EA #A797EA #D097EA
triadic
#A797EA #EAA797 #97EAA7
tetradic
#A797EA #EA97B0 #DAEA97 #97EAD0
square
#A797EA #EA97B0 #DAEA97 #97EAD0
split-complementary
#A797EA #EAD097 #B0EA97
monochromatic
#5131D5 #7C64E0 #A797EA #D2CAF4 #E9E6FA

Accessibility & contrast

On white

2.54
#A797EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#A797EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797EA
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797EA#FFFFFF#000000##000000
##A797EA1.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A4ED
Deuteranopia (green-blind)
#81A1E8
Tritanopia (blue-blind)
#98A6B6
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a797ea;
/* rgb */ color: rgb(167, 151, 234);
/* oklch */ color: oklch(72.3% 0.119 292.0);
Tailwind
colors: {
  custom: {
    50: '#c3b5f1',
    500: '#a797ea',
    950: '#000000',
  },
}
SCSS
$custom: #a797ea;
$custom-light: #c3b5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#a797ea",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 251.566,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.72254,
    "c": 0.11948,
    "h": 292
  },
  "luminance": 0.36289
}

Semantic roles & 50–950 ramp

primary
#A797EA
secondary
#EDF1DA
accent
#CE17AB
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #A797EA

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

Preview Lab → · Contrast checker → · Palette generator →

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