#A87EF4#A87EF4

#A87EF4 is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.4% C 0.171 H 298.2°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#A87EF4
RGBrgb(168, 126, 244)
HSLhsl(261, 84%, 73%)
HSVhsv(261, 48%, 96%)
CMYKcmyk(31.1%, 48.4%, 0%, 4.3%)
CIE-LABlab(61.46, 40.60, -53.59)
CIE-LCHlch(61.46, 67.24, 307.15°)
OKLaboklab(68.44% 0.0808 -0.1509)
OKLCHoklch(68.44% 0.171 298.2)
XYZxyz(39.9345, 29.7778, 89.2142)
Luminance0.2978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87EF4 #CAF47E
analogous
#7E8FF4 #A87EF4 #E37EF4
triadic
#A87EF4 #F4A87E #7EF4A8
tetradic
#A87EF4 #F47E8F #CAF47E #7EF4E3
square
#A87EF4 #F47E8F #CAF47E #7EF4E3
split-complementary
#A87EF4 #F4E37E #8FF47E
monochromatic
#5E13E4 #8246EF #A87EF4 #CEB6F9 #ECE3FD

Accessibility & contrast

On white

3.02
#A87EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#A87EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87EF4
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87EF4#FFFFFF#000000##000000
##A87EF41.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5695F8
Deuteranopia (green-blind)
#6093F1
Tritanopia (blue-blind)
#9894AE
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #a87ef4;
/* rgb */ color: rgb(168, 126, 244);
/* oklch */ color: oklch(68.4% 0.171 298.2);
Tailwind
colors: {
  custom: {
    50: '#c5a4f8',
    500: '#a87ef4',
    950: '#000000',
  },
}
SCSS
$custom: #a87ef4;
$custom-light: #c5a4f8;
$custom-dark: #000000;
JSON
{
  "hex": "#a87ef4",
  "rgb": {
    "r": 168,
    "g": 126,
    "b": 244
  },
  "hsl": {
    "h": 261.356,
    "s": 84.286,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68442,
    "c": 0.17121,
    "h": 298.2
  },
  "luminance": 0.29778
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A87EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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