#D840DA#D840DA

#D840DA is a light, highly saturated purple. Relative luminance 0.233; OKLCH L 64.8% C 0.249 H 327.4°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#D840DA
RGBrgb(216, 64, 218)
HSLhsl(299, 68%, 55%)
HSVhsv(299, 71%, 85%)
CMYKcmyk(0.9%, 70.6%, 0%, 14.5%)
CIE-LABlab(55.41, 75.45, -48.30)
CIE-LCHlch(55.41, 89.59, 327.37°)
OKLaboklab(64.83% 0.2096 -0.1339)
OKLCHoklch(64.83% 0.249 327.4)
XYZxyz(42.8066, 23.3307, 68.5647)
Luminance0.2333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840DA #42DA40
analogous
#8B40DA #D840DA #DA408F
triadic
#D840DA #DAD840 #40DAD8
tetradic
#D840DA #DA8B40 #42DA40 #408FDA
square
#D840DA #DA8B40 #42DA40 #408FDA
split-complementary
#D840DA #8FDA40 #40DA8B
monochromatic
#841A86 #B724B9 #D840DA #E273E4 #EDA7EE

Accessibility & contrast

On white

3.71
#D840DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#D840DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840DA
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840DA#FFFFFF#000000##000000
##D840DA1.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2178DE
Deuteranopia (green-blind)
#678BD6
Tritanopia (blue-blind)
#DE5889
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #d840da;
/* rgb */ color: rgb(216, 64, 218);
/* oklch */ color: oklch(64.8% 0.249 327.4);
Tailwind
colors: {
  custom: {
    50: '#e883e6',
    500: '#d840da',
    950: '#000000',
  },
}
SCSS
$custom: #d840da;
$custom-light: #e883e6;
$custom-dark: #000000;
JSON
{
  "hex": "#d840da",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 299.221,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.64829,
    "c": 0.24871,
    "h": 327.4
  },
  "luminance": 0.23328
}

Semantic roles & 50–950 ramp

primary
#D840DA
secondary
#9CDB9B
accent
#EA3D40
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#170C16
muted
#857D84

Preview Lab

Preview with #D840DA

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

Preview Lab → · Contrast checker → · Palette generator →

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