#A787EA#A787EA

#A787EA is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.3% C 0.144 H 297.4°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#A787EA
RGBrgb(167, 135, 234)
HSLhsl(259, 70%, 72%)
HSVhsv(259, 42%, 92%)
CMYKcmyk(28.6%, 42.3%, 0%, 8.2%)
CIE-LABlab(62.91, 32.82, -45.77)
CIE-LCHlch(62.91, 56.32, 305.64°)
OKLaboklab(69.35% 0.0664 -0.1282)
OKLCHoklch(69.35% 0.144 297.4)
XYZxyz(39.4481, 31.4836, 81.8246)
Luminance0.3148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787EA #CAEA87
analogous
#8799EA #A787EA #D987EA
triadic
#A787EA #EAA787 #87EAA7
tetradic
#A787EA #EA8799 #CAEA87 #87EAD9
square
#A787EA #EA8799 #CAEA87 #87EAD9
split-complementary
#A787EA #EAD987 #99EA87
monochromatic
#5D25D2 #8153E1 #A787EA #CDBBF3 #ECE5FA

Accessibility & contrast

On white

2.88
#A787EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#A787EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787EA
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787EA#FFFFFF#000000##000000
##A787EA1.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A99EE
Deuteranopia (green-blind)
#7097E7
Tritanopia (blue-blind)
#9999AD
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #a787ea;
/* rgb */ color: rgb(167, 135, 234);
/* oklch */ color: oklch(69.3% 0.144 297.4);
Tailwind
colors: {
  custom: {
    50: '#c3aaf1',
    500: '#a787ea',
    950: '#000000',
  },
}
SCSS
$custom: #a787ea;
$custom-light: #c3aaf1;
$custom-dark: #000000;
JSON
{
  "hex": "#a787ea",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 259.394,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69346,
    "c": 0.14435,
    "h": 297.4
  },
  "luminance": 0.31484
}

Semantic roles & 50–950 ramp

primary
#A787EA
secondary
#EAF2D9
accent
#D21394
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #A787EA

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

Preview Lab → · Contrast checker → · Palette generator →

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