#A787EE#A787EE

#A787EE is a light, vivid violet. Relative luminance 0.317; OKLCH L 69.6% C 0.150 H 296.6°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#A787EE
RGBrgb(167, 135, 238)
HSLhsl(259, 75%, 73%)
HSVhsv(259, 43%, 93%)
CMYKcmyk(29.8%, 43.3%, 0%, 6.7%)
CIE-LABlab(63.11, 33.81, -47.68)
CIE-LCHlch(63.11, 58.45, 305.34°)
OKLaboklab(69.56% 0.0671 -0.1337)
OKLCHoklch(69.56% 0.15 296.6)
XYZxyz(40.0292, 31.7160, 84.8852)
Luminance0.3172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787EE #CEEE87
analogous
#879AEE #A787EE #DA87EE
triadic
#A787EE #EEA787 #87EEA7
tetradic
#A787EE #EE879A #CEEE87 #87EEDA
square
#A787EE #EE879A #CEEE87 #87EEDA
split-complementary
#A787EE #EEDA87 #9AEE87
monochromatic
#5A1FDC #8051E6 #A787EE #CEBDF6 #EBE4FB

Accessibility & contrast

On white

2.86
#A787EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#A787EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787EE
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787EE#FFFFFF#000000##000000
##A787EE1.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6899F2
Deuteranopia (green-blind)
#6E97EB
Tritanopia (blue-blind)
#989AAF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #a787ee;
/* rgb */ color: rgb(167, 135, 238);
/* oklch */ color: oklch(69.6% 0.150 296.6);
Tailwind
colors: {
  custom: {
    50: '#c3aaf4',
    500: '#a787ee',
    950: '#000000',
  },
}
SCSS
$custom: #a787ee;
$custom-light: #c3aaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#a787ee",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 258.641,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.69556,
    "c": 0.14958,
    "h": 296.6
  },
  "luminance": 0.31716
}

Semantic roles & 50–950 ramp

primary
#A787EE
secondary
#EBF3D8
accent
#D70E99
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #A787EE

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

Preview Lab → · Contrast checker → · Palette generator →

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