#DC87F2#DC87F2

#DC87F2 is a light, vivid purple. Relative luminance 0.390; OKLCH L 75.1% C 0.172 H 319.2°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#DC87F2
RGBrgb(220, 135, 242)
HSLhsl(288, 80%, 74%)
HSVhsv(288, 44%, 95%)
CMYKcmyk(9.1%, 44.2%, 0%, 5.1%)
CIE-LABlab(68.72, 49.47, -40.69)
CIE-LCHlch(68.72, 64.05, 320.56°)
OKLaboklab(75.06% 0.1299 -0.1123)
OKLCHoklch(75.06% 0.172 319.2)
XYZxyz(54.2041, 38.9562, 88.6512)
Luminance0.3895 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC87F2 #9DF287
analogous
#A787F2 #DC87F2 #F287D2
triadic
#DC87F2 #F2DC87 #87F2DC
tetradic
#DC87F2 #F2A787 #9DF287 #87D2F2
square
#DC87F2 #F2A787 #9DF287 #87D2F2
split-complementary
#DC87F2 #D2F287 #87F2A7
monochromatic
#BC19E6 #CC50EC #DC87F2 #ECBEF8 #F7E3FC

Accessibility & contrast

On white

2.39
#DC87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#DC87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC87F2
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC87F2#FFFFFF#000000##000000
##DC87F21.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A2F6
Deuteranopia (green-blind)
#8EABEF
Tritanopia (blue-blind)
#DD95B1
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #dc87f2;
/* rgb */ color: rgb(220, 135, 242);
/* oklch */ color: oklch(75.1% 0.172 319.2);
Tailwind
colors: {
  custom: {
    50: '#e9acf6',
    500: '#dc87f2',
    950: '#000000',
  },
}
SCSS
$custom: #dc87f2;
$custom-light: #e9acf6;
$custom-dark: #000000;
JSON
{
  "hex": "#dc87f2",
  "rgb": {
    "r": 220,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 287.664,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.75061,
    "c": 0.1717,
    "h": 319.2
  },
  "luminance": 0.38954
}

Semantic roles & 50–950 ramp

primary
#DC87F2
secondary
#DDF4D7
accent
#DD0934
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #DC87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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