#A87DF5#A87DF5

#A87DF5 is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.3% C 0.174 H 298.2°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#A87DF5
RGBrgb(168, 125, 245)
HSLhsl(262, 86%, 73%)
HSVhsv(262, 49%, 96%)
CMYKcmyk(31.4%, 49%, 0%, 3.9%)
CIE-LABlab(61.29, 41.41, -54.41)
CIE-LCHlch(61.29, 68.38, 307.27°)
OKLaboklab(68.33% 0.0822 -0.1533)
OKLCHoklch(68.33% 0.174 298.2)
XYZxyz(39.9595, 29.5842, 89.9736)
Luminance0.2959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87DF5 #CAF57D
analogous
#7D8EF5 #A87DF5 #E47DF5
triadic
#A87DF5 #F5A87D #7DF5A8
tetradic
#A87DF5 #F57D8E #CAF57D #7DF5E4
square
#A87DF5 #F57D8E #CAF57D #7DF5E4
split-complementary
#A87DF5 #F5E47D #8EF57D
monochromatic
#5E12E6 #8244F1 #A87DF5 #CEB6F9 #ECE3FD

Accessibility & contrast

On white

3.04
#A87DF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#A87DF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87DF5
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87DF5#FFFFFF#000000##000000
##A87DF51.003.046.926.92
#FFFFFF3.041.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5494F9
Deuteranopia (green-blind)
#5E93F2
Tritanopia (blue-blind)
#9894AE
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #a87df5;
/* rgb */ color: rgb(168, 125, 245);
/* oklch */ color: oklch(68.3% 0.174 298.2);
Tailwind
colors: {
  custom: {
    50: '#c5a3f9',
    500: '#a87df5',
    950: '#000000',
  },
}
SCSS
$custom: #a87df5;
$custom-light: #c5a3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#a87df5",
  "rgb": {
    "r": 168,
    "g": 125,
    "b": 245
  },
  "hsl": {
    "h": 261.5,
    "s": 85.714,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68333,
    "c": 0.17397,
    "h": 298.2
  },
  "luminance": 0.29585
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A87DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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