#A87DFD#A87DFD

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

Color values

HEX#A87DFD
RGBrgb(168, 125, 253)
HSLhsl(260, 97%, 74%)
HSVhsv(260, 51%, 99%)
CMYKcmyk(33.6%, 50.6%, 0%, 0.8%)
CIE-LABlab(61.73, 43.40, -58.13)
CIE-LCHlch(61.73, 72.55, 306.75°)
OKLaboklab(68.8% 0.0829 -0.1642)
OKLCHoklch(68.8% 0.184 296.8)
XYZxyz(41.2073, 30.0833, 96.5451)
Luminance0.3008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87DFD #D2FD7D
analogous
#7D92FD #A87DFD #E87DFD
triadic
#A87DFD #FDA87D #7DFDA8
tetradic
#A87DFD #FD7D92 #D2FD7D #7DFDE8
square
#A87DFD #FD7D92 #D2FD7D #7DFDE8
split-complementary
#A87DFD #FDE87D #92FD7D
monochromatic
#5704FB #8041FC #A87DFD #D0B9FE #EBE1FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A87DFD#FFFFFF#000000##000000
##A87DFD1.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)
#4D96FF
Deuteranopia (green-blind)
#5794FA
Tritanopia (blue-blind)
#9596B1
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #a87dfd;
/* rgb */ color: rgb(168, 125, 253);
/* oklch */ color: oklch(68.8% 0.184 296.8);
Tailwind
colors: {
  custom: {
    50: '#c5a3ff',
    500: '#a87dfd',
    950: '#000000',
  },
}
SCSS
$custom: #a87dfd;
$custom-light: #c5a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#a87dfd",
  "rgb": {
    "r": 168,
    "g": 125,
    "b": 253
  },
  "hsl": {
    "h": 260.156,
    "s": 96.97,
    "l": 74.118
  },
  "oklch": {
    "l": 0.68795,
    "c": 0.18393,
    "h": 296.8
  },
  "luminance": 0.30084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A87DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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