#A87EFB#A87EFB

#A87EFB is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.8% C 0.180 H 296.9°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#A87EFB
RGBrgb(168, 126, 251)
HSLhsl(260, 94%, 74%)
HSVhsv(260, 50%, 98%)
CMYKcmyk(33.1%, 49.8%, 0%, 1.6%)
CIE-LABlab(61.84, 42.35, -56.86)
CIE-LCHlch(61.84, 70.89, 306.68°)
OKLaboklab(68.84% 0.0815 -0.1605)
OKLCHoklch(68.84% 0.18 296.9)
XYZxyz(41.0176, 30.2110, 94.9184)
Luminance0.3021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87EFB #D1FB7E
analogous
#7E93FB #A87EFB #E77EFB
triadic
#A87EFB #FBA87E #7EFBA8
tetradic
#A87EFB #FB7E93 #D1FB7E #7EFBE7
square
#A87EFB #FB7E93 #D1FB7E #7EFBE7
split-complementary
#A87EFB #FBE77E #93FB7E
monochromatic
#5808F7 #8043F9 #A87EFB #D0B9FD #EBE1FE

Accessibility & contrast

On white

2.98
#A87EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#A87EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A87EFB
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87EFB#FFFFFF#000000##000000
##A87EFB1.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5196FF
Deuteranopia (green-blind)
#5B94F8
Tritanopia (blue-blind)
#9696B1
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #a87efb;
/* rgb */ color: rgb(168, 126, 251);
/* oklch */ color: oklch(68.8% 0.180 296.9);
Tailwind
colors: {
  custom: {
    50: '#c5a4fd',
    500: '#a87efb',
    950: '#000000',
  },
}
SCSS
$custom: #a87efb;
$custom-light: #c5a4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#a87efb",
  "rgb": {
    "r": 168,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 260.16,
    "s": 93.985,
    "l": 73.922
  },
  "oklch": {
    "l": 0.68842,
    "c": 0.17996,
    "h": 296.9
  },
  "luminance": 0.30212
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A87EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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