#D840CD#D840CD

#D840CD is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 64.1% C 0.239 H 331.1°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#D840CD
RGBrgb(216, 64, 205)
HSLhsl(304, 66%, 55%)
HSVhsv(304, 70%, 85%)
CMYKcmyk(0%, 70.4%, 5.1%, 15.3%)
CIE-LABlab(54.74, 73.41, -41.97)
CIE-LCHlch(54.74, 84.56, 330.25°)
OKLaboklab(64.13% 0.2093 -0.1155)
OKLCHoklch(64.13% 0.239 331.1)
XYZxyz(41.1717, 22.6767, 59.9544)
Luminance0.2267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840CD #40D84B
analogous
#9740D8 #D840CD #D84081
triadic
#D840CD #CDD840 #40CDD8
tetradic
#D840CD #D89740 #40D84B #4081D8
square
#D840CD #D89740 #40D84B #4081D8
split-complementary
#D840CD #81D840 #40D897
monochromatic
#831B7B #B625AB #D840CD #E273DA #EDA6E8

Accessibility & contrast

On white

3.79
#D840CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#D840CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840CD
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840CD#FFFFFF#000000##000000
##D840CD1.003.795.535.53
#FFFFFF3.791.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3375D1
Deuteranopia (green-blind)
#6E8AC9
Tritanopia (blue-blind)
#E05282
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d840cd;
/* rgb */ color: rgb(216, 64, 205);
/* oklch */ color: oklch(64.1% 0.239 331.1);
Tailwind
colors: {
  custom: {
    50: '#e882dd',
    500: '#d840cd',
    950: '#000000',
  },
}
SCSS
$custom: #d840cd;
$custom-light: #e882dd;
$custom-dark: #000000;
JSON
{
  "hex": "#d840cd",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 304.342,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.64128,
    "c": 0.23907,
    "h": 331.1
  },
  "luminance": 0.22673
}

Semantic roles & 50–950 ramp

primary
#D840CD
secondary
#9ADA9F
accent
#E94B3F
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D840CD

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

Preview Lab → · Contrast checker → · Palette generator →

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