#A87DF6#A87DF6

#A87DF6 is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.4% C 0.175 H 298.0°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#A87DF6
RGBrgb(168, 125, 246)
HSLhsl(261, 87%, 73%)
HSVhsv(261, 49%, 96%)
CMYKcmyk(31.7%, 49.2%, 0%, 3.5%)
CIE-LABlab(61.35, 41.65, -54.88)
CIE-LCHlch(61.35, 68.90, 307.20°)
OKLaboklab(68.39% 0.0823 -0.1547)
OKLCHoklch(68.39% 0.175 298)
XYZxyz(40.1126, 29.6455, 90.7797)
Luminance0.2965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87DF6 #CBF67D
analogous
#7D8FF6 #A87DF6 #E47DF6
triadic
#A87DF6 #F6A87D #7DF6A8
tetradic
#A87DF6 #F67D8F #CBF67D #7DF6E4
square
#A87DF6 #F67D8F #CBF67D #7DF6E4
split-complementary
#A87DF6 #F6E47D #8FF67D
monochromatic
#5D10E9 #8244F2 #A87DF6 #CEB6FA #ECE2FD

Accessibility & contrast

On white

3.03
#A87DF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#A87DF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87DF6
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87DF6#FFFFFF#000000##000000
##A87DF61.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5394FA
Deuteranopia (green-blind)
#5D93F3
Tritanopia (blue-blind)
#9794AE
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #a87df6;
/* rgb */ color: rgb(168, 125, 246);
/* oklch */ color: oklch(68.4% 0.175 298.0);
Tailwind
colors: {
  custom: {
    50: '#c5a3fa',
    500: '#a87df6',
    950: '#000000',
  },
}
SCSS
$custom: #a87df6;
$custom-light: #c5a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#a87df6",
  "rgb": {
    "r": 168,
    "g": 125,
    "b": 246
  },
  "hsl": {
    "h": 261.322,
    "s": 87.05,
    "l": 72.745
  },
  "oklch": {
    "l": 0.6839,
    "c": 0.17522,
    "h": 298
  },
  "luminance": 0.29646
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A87DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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