#DC87F7#DC87F7

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

Color values

HEX#DC87F7
RGBrgb(220, 135, 247)
HSLhsl(286, 88%, 75%)
HSVhsv(286, 45%, 97%)
CMYKcmyk(10.9%, 45.3%, 0%, 3.1%)
CIE-LABlab(68.94, 50.45, -43.08)
CIE-LCHlch(68.94, 66.34, 319.50°)
OKLaboklab(75.3% 0.1307 -0.1192)
OKLCHoklch(75.3% 0.177 317.6)
XYZxyz(54.9653, 39.2607, 92.6603)
Luminance0.3926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC87F7 #A2F787
analogous
#A487F7 #DC87F7 #F787DA
triadic
#DC87F7 #F7DC87 #87F7DC
tetradic
#DC87F7 #F7A487 #A2F787 #87DAF7
square
#DC87F7 #F7A487 #A2F787 #87DAF7
split-complementary
#DC87F7 #DAF787 #87F7A4
monochromatic
#BB14EF #CB4EF3 #DC87F7 #EDC0FB #F7E2FD

Accessibility & contrast

On white

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

On black

8.85
#DC87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC87F7
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC87F7#FFFFFF#000000##000000
##DC87F71.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A3FB
Deuteranopia (green-blind)
#8BABF4
Tritanopia (blue-blind)
#DC96B3
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #dc87f7;
/* rgb */ color: rgb(220, 135, 247);
/* oklch */ color: oklch(75.3% 0.177 317.6);
Tailwind
colors: {
  custom: {
    50: '#e9acfa',
    500: '#dc87f7',
    950: '#000000',
  },
}
SCSS
$custom: #dc87f7;
$custom-light: #e9acfa;
$custom-dark: #000000;
JSON
{
  "hex": "#dc87f7",
  "rgb": {
    "r": 220,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 285.536,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.75297,
    "c": 0.17689,
    "h": 317.6
  },
  "luminance": 0.39259
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DC87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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