#A87EF5#A87EF5

#A87EF5 is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.5% C 0.172 H 298.0°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#A87EF5
RGBrgb(168, 126, 245)
HSLhsl(261, 86%, 73%)
HSVhsv(261, 49%, 96%)
CMYKcmyk(31.4%, 48.6%, 0%, 3.9%)
CIE-LABlab(61.51, 40.85, -54.06)
CIE-LCHlch(61.51, 67.76, 307.07°)
OKLaboklab(68.5% 0.0809 -0.1523)
OKLCHoklch(68.5% 0.172 298)
XYZxyz(40.0867, 29.8387, 90.0160)
Luminance0.2984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87EF5 #CBF57E
analogous
#7E90F5 #A87EF5 #E37EF5
triadic
#A87EF5 #F5A87E #7EF5A8
tetradic
#A87EF5 #F57E90 #CBF57E #7EF5E3
square
#A87EF5 #F57E90 #CBF57E #7EF5E3
split-complementary
#A87EF5 #F5E37E #90F57E
monochromatic
#5D12E7 #8245F1 #A87EF5 #CEB7F9 #ECE3FD

Accessibility & contrast

On white

3.01
#A87EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#A87EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87EF5
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87EF5#FFFFFF#000000##000000
##A87EF51.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5695F9
Deuteranopia (green-blind)
#5F93F2
Tritanopia (blue-blind)
#9894AE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #a87ef5;
/* rgb */ color: rgb(168, 126, 245);
/* oklch */ color: oklch(68.5% 0.172 298.0);
Tailwind
colors: {
  custom: {
    50: '#c5a4f9',
    500: '#a87ef5',
    950: '#000000',
  },
}
SCSS
$custom: #a87ef5;
$custom-light: #c5a4f9;
$custom-dark: #000000;
JSON
{
  "hex": "#a87ef5",
  "rgb": {
    "r": 168,
    "g": 126,
    "b": 245
  },
  "hsl": {
    "h": 261.176,
    "s": 85.612,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68498,
    "c": 0.17246,
    "h": 298
  },
  "luminance": 0.29839
}

Semantic roles & 50–950 ramp

primary
#A87EF5
secondary
#EAF5D6
accent
#E20394
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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