#D840DD#D840DD

#D840DD is a light, highly saturated purple. Relative luminance 0.235; OKLCH L 65.0% C 0.251 H 326.6°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#D840DD
RGBrgb(216, 64, 221)
HSLhsl(298, 70%, 56%)
HSVhsv(298, 71%, 87%)
CMYKcmyk(2.3%, 71%, 0%, 13.3%)
CIE-LABlab(55.57, 75.94, -49.75)
CIE-LCHlch(55.57, 90.78, 326.77°)
OKLaboklab(65% 0.2096 -0.1381)
OKLCHoklch(65% 0.251 326.6)
XYZxyz(43.2027, 23.4891, 70.6509)
Luminance0.2349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840DD #45DD40
analogous
#8940DD #D840DD #DD4093
triadic
#D840DD #DDD840 #40DDD8
tetradic
#D840DD #DD8940 #45DD40 #4093DD
square
#D840DD #DD8940 #45DD40 #4093DD
split-complementary
#D840DD #93DD40 #40DD89
monochromatic
#86198A #B922BE #D840DD #E374E6 #EDA8EF

Accessibility & contrast

On white

3.69
#D840DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#D840DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840DD
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840DD#FFFFFF#000000##000000
##D840DD1.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A79E1
Deuteranopia (green-blind)
#668CD9
Tritanopia (blue-blind)
#DE598B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #d840dd;
/* rgb */ color: rgb(216, 64, 221);
/* oklch */ color: oklch(65.0% 0.251 326.6);
Tailwind
colors: {
  custom: {
    50: '#e883e8',
    500: '#d840dd',
    950: '#000000',
  },
}
SCSS
$custom: #d840dd;
$custom-light: #e883e8;
$custom-dark: #000000;
JSON
{
  "hex": "#d840dd",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 298.089,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.64997,
    "c": 0.25098,
    "h": 326.6
  },
  "luminance": 0.23486
}

Semantic roles & 50–950 ramp

primary
#D840DD
secondary
#9EDD9C
accent
#ED3B41
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#170C16
muted
#857D84

Preview Lab

Preview with #D840DD

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

Preview Lab → · Contrast checker → · Palette generator →

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