#D842D9#D842D9

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

Color values

HEX#D842D9
RGBrgb(216, 66, 217)
HSLhsl(300, 67%, 55%)
HSVhsv(300, 70%, 85%)
CMYKcmyk(0.5%, 69.6%, 0%, 14.9%)
CIE-LABlab(55.59, 74.63, -47.45)
CIE-LCHlch(55.59, 88.44, 327.55°)
OKLaboklab(64.94% 0.2077 -0.1314)
OKLCHoklch(64.94% 0.246 327.7)
XYZxyz(42.7909, 23.5081, 67.9159)
Luminance0.2351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842D9 #43D942
analogous
#8D42D9 #D842D9 #D9428E
triadic
#D842D9 #D9D842 #42D9D8
tetradic
#D842D9 #D98D42 #43D942 #428ED9
square
#D842D9 #D98D42 #43D942 #428ED9
split-complementary
#D842D9 #8ED942 #42D98D
monochromatic
#851B86 #B825B9 #D842D9 #E375E3 #EDA8ED

Accessibility & contrast

On white

3.68
#D842D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##D842D9#FFFFFF#000000##000000
##D842D91.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2679DD
Deuteranopia (green-blind)
#698CD5
Tritanopia (blue-blind)
#DE5989
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #d842d9;
/* rgb */ color: rgb(216, 66, 217);
/* oklch */ color: oklch(64.9% 0.246 327.7);
Tailwind
colors: {
  custom: {
    50: '#e884e5',
    500: '#d842d9',
    950: '#000000',
  },
}
SCSS
$custom: #d842d9;
$custom-light: #e884e5;
$custom-dark: #000000;
JSON
{
  "hex": "#d842d9",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 299.603,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.64941,
    "c": 0.2458,
    "h": 327.7
  },
  "luminance": 0.23505
}

Semantic roles & 50–950 ramp

primary
#D842D9
secondary
#9CDB9C
accent
#E93E3F
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#170C16
muted
#857D84

Preview Lab

Preview with #D842D9

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

Preview Lab → · Contrast checker → · Palette generator →

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