#A87FF5#A87FF5

#A87FF5 is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.7% C 0.171 H 297.8°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#A87FF5
RGBrgb(168, 127, 245)
HSLhsl(261, 86%, 73%)
HSVhsv(261, 48%, 96%)
CMYKcmyk(31.4%, 48.2%, 0%, 3.9%)
CIE-LABlab(61.74, 40.29, -53.71)
CIE-LCHlch(61.74, 67.14, 306.88°)
OKLaboklab(68.66% 0.0797 -0.1513)
OKLCHoklch(68.66% 0.171 297.8)
XYZxyz(40.2152, 30.0957, 90.0588)
Luminance0.3010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87FF5 #CCF57F
analogous
#7F91F5 #A87FF5 #E37FF5
triadic
#A87FF5 #F5A87F #7FF5A8
tetradic
#A87FF5 #F57F91 #CCF57F #7FF5E3
square
#A87FF5 #F57F91 #CCF57F #7FF5E3
split-complementary
#A87FF5 #F5E37F #91F57F
monochromatic
#5C12E8 #8146F1 #A87FF5 #CFB8F9 #ECE3FD

Accessibility & contrast

On white

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

On black

7.02
#A87FF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A87FF5
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87FF5#FFFFFF#000000##000000
##A87FF51.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5795F9
Deuteranopia (green-blind)
#6194F2
Tritanopia (blue-blind)
#9895AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #a87ff5;
/* rgb */ color: rgb(168, 127, 245);
/* oklch */ color: oklch(68.7% 0.171 297.8);
Tailwind
colors: {
  custom: {
    50: '#c5a5f9',
    500: '#a87ff5',
    950: '#000000',
  },
}
SCSS
$custom: #a87ff5;
$custom-light: #c5a5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#a87ff5",
  "rgb": {
    "r": 168,
    "g": 127,
    "b": 245
  },
  "hsl": {
    "h": 260.847,
    "s": 85.507,
    "l": 72.941
  },
  "oklch": {
    "l": 0.68664,
    "c": 0.17095,
    "h": 297.8
  },
  "luminance": 0.30096
}

Semantic roles & 50–950 ramp

primary
#A87FF5
secondary
#EAF5D6
accent
#E20395
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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