#A87FF2#A87FF2

#A87FF2 is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.5% C 0.167 H 298.3°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#A87FF2
RGBrgb(168, 127, 242)
HSLhsl(261, 82%, 72%)
HSVhsv(261, 48%, 95%)
CMYKcmyk(30.6%, 47.5%, 0%, 5.1%)
CIE-LABlab(61.58, 39.55, -52.30)
CIE-LCHlch(61.58, 65.57, 307.10°)
OKLaboklab(68.5% 0.0793 -0.1471)
OKLCHoklch(68.5% 0.167 298.3)
XYZxyz(39.7610, 29.9140, 87.6664)
Luminance0.2991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87FF2 #C9F27F
analogous
#7F90F2 #A87FF2 #E17FF2
triadic
#A87FF2 #F2A87F #7FF2A8
tetradic
#A87FF2 #F27F90 #C9F27F #7FF2E1
square
#A87FF2 #F27F90 #C9F27F #7FF2E1
split-complementary
#A87FF2 #F2E17F #90F27F
monochromatic
#5E17E0 #8247EC #A87FF2 #CEB7F8 #ECE3FC

Accessibility & contrast

On white

3.01
#A87FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#A87FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87FF2
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87FF2#FFFFFF#000000##000000
##A87FF21.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A95F6
Deuteranopia (green-blind)
#6394EF
Tritanopia (blue-blind)
#9994AD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #a87ff2;
/* rgb */ color: rgb(168, 127, 242);
/* oklch */ color: oklch(68.5% 0.167 298.3);
Tailwind
colors: {
  custom: {
    50: '#c5a5f7',
    500: '#a87ff2',
    950: '#000000',
  },
}
SCSS
$custom: #a87ff2;
$custom-light: #c5a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a87ff2",
  "rgb": {
    "r": 168,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 261.391,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68496,
    "c": 0.16717,
    "h": 298.3
  },
  "luminance": 0.29914
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A87FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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