#D840CE#D840CE

#D840CE is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 64.2% C 0.240 H 330.8°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#D840CE
RGBrgb(216, 64, 206)
HSLhsl(304, 66%, 55%)
HSVhsv(304, 70%, 85%)
CMYKcmyk(0%, 70.4%, 4.6%, 15.3%)
CIE-LABlab(54.79, 73.57, -42.46)
CIE-LCHlch(54.79, 84.94, 330.01°)
OKLaboklab(64.18% 0.2094 -0.117)
OKLCHoklch(64.18% 0.24 330.8)
XYZxyz(41.2928, 22.7252, 60.5921)
Luminance0.2272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840CE #40D84A
analogous
#9640D8 #D840CE #D84082
triadic
#D840CE #CED840 #40CED8
tetradic
#D840CE #D89640 #40D84A #4082D8
square
#D840CE #D89640 #40D84A #4082D8
split-complementary
#D840CE #82D840 #40D896
monochromatic
#831B7C #B625AC #D840CE #E273DB #EDA6E8

Accessibility & contrast

On white

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

On black

5.54
#D840CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840CE
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840CE#FFFFFF#000000##000000
##D840CE1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3276D2
Deuteranopia (green-blind)
#6E8ACA
Tritanopia (blue-blind)
#E05283
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d840ce;
/* rgb */ color: rgb(216, 64, 206);
/* oklch */ color: oklch(64.2% 0.240 330.8);
Tailwind
colors: {
  custom: {
    50: '#e882dd',
    500: '#d840ce',
    950: '#000000',
  },
}
SCSS
$custom: #d840ce;
$custom-light: #e882dd;
$custom-dark: #000000;
JSON
{
  "hex": "#d840ce",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 303.947,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.6418,
    "c": 0.23981,
    "h": 330.8
  },
  "luminance": 0.22722
}

Semantic roles & 50–950 ramp

primary
#D840CE
secondary
#9ADA9E
accent
#E94A3F
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D840CE

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

Preview Lab → · Contrast checker → · Palette generator →

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