#DC87F8#DC87F8

#DC87F8 is a light, vivid purple. Relative luminance 0.393; OKLCH L 75.3% C 0.178 H 317.3°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#DC87F8
RGBrgb(220, 135, 248)
HSLhsl(285, 89%, 75%)
HSVhsv(285, 46%, 97%)
CMYKcmyk(11.3%, 45.6%, 0%, 2.7%)
CIE-LABlab(68.98, 50.65, -43.56)
CIE-LCHlch(68.98, 66.80, 319.30°)
OKLaboklab(75.35% 0.1309 -0.1206)
OKLCHoklch(75.35% 0.178 317.3)
XYZxyz(55.1200, 39.3226, 93.4752)
Luminance0.3932 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC87F8 #A3F887
analogous
#A487F8 #DC87F8 #F887DB
triadic
#DC87F8 #F8DC87 #87F8DC
tetradic
#DC87F8 #F8A487 #A3F887 #87DBF8
square
#DC87F8 #F8A487 #A3F887 #87DBF8
split-complementary
#DC87F8 #DBF887 #87F8A4
monochromatic
#BA13F1 #CB4DF5 #DC87F8 #EDC1FB #F7E2FD

Accessibility & contrast

On white

2.37
#DC87F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#DC87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC87F8
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC87F8#FFFFFF#000000##000000
##DC87F81.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A3FC
Deuteranopia (green-blind)
#8BABF5
Tritanopia (blue-blind)
#DC97B4
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #dc87f8;
/* rgb */ color: rgb(220, 135, 248);
/* oklch */ color: oklch(75.3% 0.178 317.3);
Tailwind
colors: {
  custom: {
    50: '#e9acfb',
    500: '#dc87f8',
    950: '#000000',
  },
}
SCSS
$custom: #dc87f8;
$custom-light: #e9acfb;
$custom-dark: #000000;
JSON
{
  "hex": "#dc87f8",
  "rgb": {
    "r": 220,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 285.133,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.75345,
    "c": 0.17792,
    "h": 317.3
  },
  "luminance": 0.39321
}

Semantic roles & 50–950 ramp

primary
#DC87F8
secondary
#DDF5D6
accent
#E60039
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #DC87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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