#A87EFA#A87EFA

#A87EFA is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.8% C 0.179 H 297.1°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#A87EFA
RGBrgb(168, 126, 250)
HSLhsl(260, 93%, 74%)
HSVhsv(260, 50%, 98%)
CMYKcmyk(32.8%, 49.6%, 0%, 2%)
CIE-LABlab(61.78, 42.10, -56.39)
CIE-LCHlch(61.78, 70.37, 306.74°)
OKLaboklab(68.78% 0.0814 -0.1591)
OKLCHoklch(68.78% 0.179 297.1)
XYZxyz(40.8604, 30.1481, 94.0904)
Luminance0.3015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87EFA #D0FA7E
analogous
#7E92FA #A87EFA #E67EFA
triadic
#A87EFA #FAA87E #7EFAA8
tetradic
#A87EFA #FA7E92 #D0FA7E #7EFAE6
square
#A87EFA #FA7E92 #D0FA7E #7EFAE6
split-complementary
#A87EFA #FAE67E #92FA7E
monochromatic
#5909F4 #8043F8 #A87EFA #D0B9FC #EBE2FE

Accessibility & contrast

On white

2.99
#A87EFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#A87EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A87EFA
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87EFA#FFFFFF#000000##000000
##A87EFA1.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5296FE
Deuteranopia (green-blind)
#5B94F7
Tritanopia (blue-blind)
#9696B0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #a87efa;
/* rgb */ color: rgb(168, 126, 250);
/* oklch */ color: oklch(68.8% 0.179 297.1);
Tailwind
colors: {
  custom: {
    50: '#c5a4fc',
    500: '#a87efa',
    950: '#000000',
  },
}
SCSS
$custom: #a87efa;
$custom-light: #c5a4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#a87efa",
  "rgb": {
    "r": 168,
    "g": 126,
    "b": 250
  },
  "hsl": {
    "h": 260.323,
    "s": 92.537,
    "l": 73.725
  },
  "oklch": {
    "l": 0.68784,
    "c": 0.17872,
    "h": 297.1
  },
  "luminance": 0.30149
}

Semantic roles & 50–950 ramp

primary
#A87EFA
secondary
#EBF6D5
accent
#E60098
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #A87EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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