#A87FEF#A87FEF

#A87FEF is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.3% C 0.163 H 298.9°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#A87FEF
RGBrgb(168, 127, 239)
HSLhsl(262, 78%, 72%)
HSVhsv(262, 47%, 94%)
CMYKcmyk(29.7%, 46.9%, 0%, 6.3%)
CIE-LABlab(61.43, 38.81, -50.89)
CIE-LCHlch(61.43, 64.00, 307.33°)
OKLaboklab(68.33% 0.079 -0.143)
OKLCHoklch(68.33% 0.163 298.9)
XYZxyz(39.3141, 29.7353, 85.3129)
Luminance0.2974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87FEF #C6EF7F
analogous
#7F8EEF #A87FEF #E07FEF
triadic
#A87FEF #EFA87F #7FEFA8
tetradic
#A87FEF #EF7F8E #C6EF7F #7FEFE0
square
#A87FEF #EF7F8E #C6EF7F #7FEFE0
split-complementary
#A87FEF #EFE07F #8EEF7F
monochromatic
#601BD9 #8349E8 #A87FEF #CDB5F6 #EDE4FC

Accessibility & contrast

On white

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

On black

6.95
#A87FEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87FEF
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87FEF#FFFFFF#000000##000000
##A87FEF1.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C94F3
Deuteranopia (green-blind)
#6593EC
Tritanopia (blue-blind)
#9A94AC
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #a87fef;
/* rgb */ color: rgb(168, 127, 239);
/* oklch */ color: oklch(68.3% 0.163 298.9);
Tailwind
colors: {
  custom: {
    50: '#c4a5f5',
    500: '#a87fef',
    950: '#000000',
  },
}
SCSS
$custom: #a87fef;
$custom-light: #c4a5f5;
$custom-dark: #000000;
JSON
{
  "hex": "#a87fef",
  "rgb": {
    "r": 168,
    "g": 127,
    "b": 239
  },
  "hsl": {
    "h": 261.964,
    "s": 77.778,
    "l": 71.765
  },
  "oklch": {
    "l": 0.6833,
    "c": 0.16338,
    "h": 298.9
  },
  "luminance": 0.29736
}

Semantic roles & 50–950 ramp

primary
#A87FEF
secondary
#E9F3D7
accent
#DA0B8E
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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