#A787EB#A787EB

#A787EB is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.4% C 0.146 H 297.2°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#A787EB
RGBrgb(167, 135, 235)
HSLhsl(259, 71%, 73%)
HSVhsv(259, 43%, 92%)
CMYKcmyk(28.9%, 42.6%, 0%, 7.8%)
CIE-LABlab(62.96, 33.06, -46.25)
CIE-LCHlch(62.96, 56.85, 305.56°)
OKLaboklab(69.4% 0.0666 -0.1295)
OKLCHoklch(69.4% 0.146 297.2)
XYZxyz(39.5921, 31.5412, 82.5833)
Luminance0.3154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787EB #CBEB87
analogous
#8799EB #A787EB #D987EB
triadic
#A787EB #EBA787 #87EBA7
tetradic
#A787EB #EB8799 #CBEB87 #87EBD9
square
#A787EB #EB8799 #CBEB87 #87EBD9
split-complementary
#A787EB #EBD987 #99EB87
monochromatic
#5C23D4 #8153E2 #A787EB #CDBBF4 #ECE5FB

Accessibility & contrast

On white

2.87
#A787EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#A787EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787EB
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787EB#FFFFFF#000000##000000
##A787EB1.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A99EF
Deuteranopia (green-blind)
#7097E8
Tritanopia (blue-blind)
#9999AE
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #a787eb;
/* rgb */ color: rgb(167, 135, 235);
/* oklch */ color: oklch(69.4% 0.146 297.2);
Tailwind
colors: {
  custom: {
    50: '#c3aaf2',
    500: '#a787eb',
    950: '#000000',
  },
}
SCSS
$custom: #a787eb;
$custom-light: #c3aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#a787eb",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 235
  },
  "hsl": {
    "h": 259.2,
    "s": 71.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69398,
    "c": 0.14565,
    "h": 297.2
  },
  "luminance": 0.31542
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A787EB

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

Preview Lab → · Contrast checker → · Palette generator →

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