#A87EFE#A87EFE

#A87EFE is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.0% C 0.184 H 296.4°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#A87EFE
RGBrgb(168, 126, 254)
HSLhsl(260, 98%, 75%)
HSVhsv(260, 50%, 100%)
CMYKcmyk(33.9%, 50.4%, 0%, 0.4%)
CIE-LABlab(62.00, 43.10, -58.24)
CIE-LCHlch(62.00, 72.46, 306.50°)
OKLaboklab(69.02% 0.0817 -0.1645)
OKLCHoklch(69.02% 0.184 296.4)
XYZxyz(41.4942, 30.4017, 97.4287)
Luminance0.3040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87EFE #D4FE7E
analogous
#7E94FE #A87EFE #E87EFE
triadic
#A87EFE #FEA87E #7EFEA8
tetradic
#A87EFE #FE7E94 #D4FE7E #7EFEE8
square
#A87EFE #FE7E94 #D4FE7E #7EFEE8
split-complementary
#A87EFE #FEE87E #94FE7E
monochromatic
#5605FD #7F41FE #A87EFE #D1BBFE #EBE1FF

Accessibility & contrast

On white

2.97
#A87EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#A87EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A87EFE
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87EFE#FFFFFF#000000##000000
##A87EFE1.002.977.087.08
#FFFFFF2.971.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E96FF
Deuteranopia (green-blind)
#5894FB
Tritanopia (blue-blind)
#9597B2
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #a87efe;
/* rgb */ color: rgb(168, 126, 254);
/* oklch */ color: oklch(69.0% 0.184 296.4);
Tailwind
colors: {
  custom: {
    50: '#c6a4ff',
    500: '#a87efe',
    950: '#000000',
  },
}
SCSS
$custom: #a87efe;
$custom-light: #c6a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#a87efe",
  "rgb": {
    "r": 168,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 259.688,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.69016,
    "c": 0.1837,
    "h": 296.4
  },
  "luminance": 0.30402
}

Semantic roles & 50–950 ramp

primary
#A87EFE
secondary
#ECF7D4
accent
#E6009A
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #A87EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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