#DC87FC#DC87FC

#DC87FC is a light, vivid purple. Relative luminance 0.396; OKLCH L 75.5% C 0.182 H 316.2°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#DC87FC
RGBrgb(220, 135, 252)
HSLhsl(284, 95%, 76%)
HSVhsv(284, 46%, 99%)
CMYKcmyk(12.7%, 46.4%, 0%, 1.2%)
CIE-LABlab(69.16, 51.45, -45.46)
CIE-LCHlch(69.16, 68.65, 318.53°)
OKLaboklab(75.54% 0.1314 -0.126)
OKLCHoklch(75.54% 0.182 316.2)
XYZxyz(55.7472, 39.5735, 96.7784)
Luminance0.3957 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC87FC #A7FC87
analogous
#A187FC #DC87FC #FC87E1
triadic
#DC87FC #FCDC87 #87FCDC
tetradic
#DC87FC #FCA187 #A7FC87 #87E1FC
square
#DC87FC #FCA187 #A7FC87 #87E1FC
split-complementary
#DC87FC #E1FC87 #87FCA1
monochromatic
#B910F9 #CB4BFB #DC87FC #EDC3FD #F6E1FE

Accessibility & contrast

On white

2.36
#DC87FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#DC87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC87FC
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC87FC#FFFFFF#000000##000000
##DC87FC1.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A4FF
Deuteranopia (green-blind)
#89ABF9
Tritanopia (blue-blind)
#DB98B6
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #dc87fc;
/* rgb */ color: rgb(220, 135, 252);
/* oklch */ color: oklch(75.5% 0.182 316.2);
Tailwind
colors: {
  custom: {
    50: '#e9acfe',
    500: '#dc87fc',
    950: '#000000',
  },
}
SCSS
$custom: #dc87fc;
$custom-light: #e9acfe;
$custom-dark: #000000;
JSON
{
  "hex": "#dc87fc",
  "rgb": {
    "r": 220,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 283.59,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75538,
    "c": 0.18211,
    "h": 316.2
  },
  "luminance": 0.39572
}

Semantic roles & 50–950 ramp

primary
#DC87FC
secondary
#DEF6D5
accent
#E6003F
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #DC87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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