#A87DF2#A87DF2

#A87DF2 is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.2% C 0.170 H 298.8°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#A87DF2
RGBrgb(168, 125, 242)
HSLhsl(262, 82%, 72%)
HSVhsv(262, 48%, 95%)
CMYKcmyk(30.6%, 48.3%, 0%, 5.1%)
CIE-LABlab(61.14, 40.66, -53.01)
CIE-LCHlch(61.14, 66.81, 307.49°)
OKLaboklab(68.16% 0.0819 -0.1492)
OKLCHoklch(68.16% 0.17 298.8)
XYZxyz(39.5052, 29.4025, 87.5811)
Luminance0.2940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87DF2 #C7F27D
analogous
#7D8DF2 #A87DF2 #E27DF2
triadic
#A87DF2 #F2A87D #7DF2A8
tetradic
#A87DF2 #F27D8D #C7F27D #7DF2E2
square
#A87DF2 #F27D8D #C7F27D #7DF2E2
split-complementary
#A87DF2 #F2E27D #8DF27D
monochromatic
#6016DE #8345EC #A87DF2 #CDB5F8 #ECE3FC

Accessibility & contrast

On white

3.05
#A87DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#A87DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87DF2
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87DF2#FFFFFF#000000##000000
##A87DF21.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5694F6
Deuteranopia (green-blind)
#6093EF
Tritanopia (blue-blind)
#9993AC
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #a87df2;
/* rgb */ color: rgb(168, 125, 242);
/* oklch */ color: oklch(68.2% 0.170 298.8);
Tailwind
colors: {
  custom: {
    50: '#c5a3f7',
    500: '#a87df2',
    950: '#000000',
  },
}
SCSS
$custom: #a87df2;
$custom-light: #c5a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a87df2",
  "rgb": {
    "r": 168,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 262.051,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.68164,
    "c": 0.17022,
    "h": 298.8
  },
  "luminance": 0.29403
}

Semantic roles & 50–950 ramp

primary
#A87DF2
secondary
#E9F4D7
accent
#DE078F
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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