#AD87FE#AD87FE

#AD87FE is a light, vivid violet. Relative luminance 0.334; OKLCH L 71.0% C 0.171 H 296.5°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#AD87FE
RGBrgb(173, 135, 254)
HSLhsl(259, 98%, 76%)
HSVhsv(259, 47%, 100%)
CMYKcmyk(31.9%, 46.9%, 0%, 0.4%)
CIE-LABlab(64.46, 39.35, -54.30)
CIE-LCHlch(64.46, 67.06, 305.93°)
OKLaboklab(70.96% 0.0763 -0.1529)
OKLCHoklch(70.96% 0.171 296.5)
XYZxyz(43.7825, 33.3674, 97.8806)
Luminance0.3337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD87FE #D8FE87
analogous
#879DFE #AD87FE #E987FE
triadic
#AD87FE #FEAD87 #87FEAD
tetradic
#AD87FE #FE879D #D8FE87 #87FEE9
square
#AD87FE #FE879D #D8FE87 #87FEE9
split-complementary
#AD87FE #FEE987 #9DFE87
monochromatic
#5A0EFD #844AFD #AD87FE #D6C4FF #EAE1FF

Accessibility & contrast

On white

2.74
#AD87FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#AD87FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AD87FE
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD87FE#FFFFFF#000000##000000
##AD87FE1.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9DFF
Deuteranopia (green-blind)
#679BFB
Tritanopia (blue-blind)
#9B9DB7
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ad87fe;
/* rgb */ color: rgb(173, 135, 254);
/* oklch */ color: oklch(71.0% 0.171 296.5);
Tailwind
colors: {
  custom: {
    50: '#c8aaff',
    500: '#ad87fe',
    950: '#000000',
  },
}
SCSS
$custom: #ad87fe;
$custom-light: #c8aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#ad87fe",
  "rgb": {
    "r": 173,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 259.16,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.70961,
    "c": 0.17085,
    "h": 296.5
  },
  "luminance": 0.33368
}

Semantic roles & 50–950 ramp

primary
#AD87FE
secondary
#ECF7D4
accent
#E6009C
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AD87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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