#A787EF#A787EF

#A787EF is a light, vivid violet. Relative luminance 0.318; OKLCH L 69.6% C 0.151 H 296.5°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#A787EF
RGBrgb(167, 135, 239)
HSLhsl(258, 76%, 73%)
HSVhsv(258, 44%, 94%)
CMYKcmyk(30.1%, 43.5%, 0%, 6.3%)
CIE-LABlab(63.16, 34.05, -48.15)
CIE-LCHlch(63.16, 58.98, 305.27°)
OKLaboklab(69.61% 0.0672 -0.1351)
OKLCHoklch(69.61% 0.151 296.5)
XYZxyz(40.1765, 31.7749, 85.6611)
Luminance0.3177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787EF #CFEF87
analogous
#879BEF #A787EF #DB87EF
triadic
#A787EF #EFA787 #87EFA7
tetradic
#A787EF #EF879B #CFEF87 #87EFDB
square
#A787EF #EF879B #CFEF87 #87EFDB
split-complementary
#A787EF #EFDB87 #9BEF87
monochromatic
#591EDE #7F51E8 #A787EF #CFBDF6 #EBE4FB

Accessibility & contrast

On white

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

On black

7.35
#A787EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787EF
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787EF#FFFFFF#000000##000000
##A787EF1.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6899F3
Deuteranopia (green-blind)
#6D98EC
Tritanopia (blue-blind)
#989AB0
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #a787ef;
/* rgb */ color: rgb(167, 135, 239);
/* oklch */ color: oklch(69.6% 0.151 296.5);
Tailwind
colors: {
  custom: {
    50: '#c3aaf5',
    500: '#a787ef',
    950: '#000000',
  },
}
SCSS
$custom: #a787ef;
$custom-light: #c3aaf5;
$custom-dark: #000000;
JSON
{
  "hex": "#a787ef",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 258.462,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.69609,
    "c": 0.15088,
    "h": 296.5
  },
  "luminance": 0.31775
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A787EF

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

Preview Lab → · Contrast checker → · Palette generator →

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