#A87EF2#A87EF2

#A87EF2 is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.3% C 0.169 H 298.6°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#A87EF2
RGBrgb(168, 126, 242)
HSLhsl(262, 82%, 72%)
HSVhsv(262, 48%, 95%)
CMYKcmyk(30.6%, 47.9%, 0%, 5.1%)
CIE-LABlab(61.36, 40.11, -52.66)
CIE-LCHlch(61.36, 66.19, 307.30°)
OKLaboklab(68.33% 0.0806 -0.1482)
OKLCHoklch(68.33% 0.169 298.6)
XYZxyz(39.6325, 29.6570, 87.6235)
Luminance0.2966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87EF2 #C8F27E
analogous
#7E8EF2 #A87EF2 #E27EF2
triadic
#A87EF2 #F2A87E #7EF2A8
tetradic
#A87EF2 #F27E8E #C8F27E #7EF2E2
square
#A87EF2 #F27E8E #C8F27E #7EF2E2
split-complementary
#A87EF2 #F2E27E #8EF27E
monochromatic
#5F16DF #8346EC #A87EF2 #CDB6F8 #ECE3FC

Accessibility & contrast

On white

3.03
#A87EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#A87EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87EF2
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87EF2#FFFFFF#000000##000000
##A87EF21.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5894F6
Deuteranopia (green-blind)
#6293EF
Tritanopia (blue-blind)
#9994AD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #a87ef2;
/* rgb */ color: rgb(168, 126, 242);
/* oklch */ color: oklch(68.3% 0.169 298.6);
Tailwind
colors: {
  custom: {
    50: '#c5a4f7',
    500: '#a87ef2',
    950: '#000000',
  },
}
SCSS
$custom: #a87ef2;
$custom-light: #c5a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a87ef2",
  "rgb": {
    "r": 168,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 261.724,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68329,
    "c": 0.1687,
    "h": 298.6
  },
  "luminance": 0.29657
}

Semantic roles & 50–950 ramp

primary
#A87EF2
secondary
#EAF4D7
accent
#DE0790
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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