#D842D7#D842D7

#D842D7 is a light, highly saturated purple. Relative luminance 0.234; OKLCH L 64.8% C 0.244 H 328.2°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#D842D7
RGBrgb(216, 66, 215)
HSLhsl(300, 66%, 55%)
HSVhsv(300, 69%, 85%)
CMYKcmyk(0%, 69.4%, 0.5%, 15.3%)
CIE-LABlab(55.49, 74.31, -46.48)
CIE-LCHlch(55.49, 87.65, 327.97°)
OKLaboklab(64.83% 0.2077 -0.1286)
OKLCHoklch(64.83% 0.244 328.2)
XYZxyz(42.5324, 23.4047, 66.5542)
Luminance0.2340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842D7 #42D843
analogous
#8E42D8 #D842D7 #D8428C
triadic
#D842D7 #D7D842 #42D7D8
tetradic
#D842D7 #D88E42 #42D843 #428CD8
square
#D842D7 #D88E42 #42D843 #428CD8
split-complementary
#D842D7 #8CD842 #42D88E
monochromatic
#841B84 #B726B6 #D842D7 #E275E2 #EDA7EC

Accessibility & contrast

On white

3.70
#D842D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#D842D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D842D7
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D842D7#FFFFFF#000000##000000
##D842D71.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A78DB
Deuteranopia (green-blind)
#6A8CD3
Tritanopia (blue-blind)
#DF5888
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #d842d7;
/* rgb */ color: rgb(216, 66, 215);
/* oklch */ color: oklch(64.8% 0.244 328.2);
Tailwind
colors: {
  custom: {
    50: '#e884e4',
    500: '#d842d7',
    950: '#000000',
  },
}
SCSS
$custom: #d842d7;
$custom-light: #e884e4;
$custom-dark: #000000;
JSON
{
  "hex": "#d842d7",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 300.4,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.64832,
    "c": 0.2443,
    "h": 328.2
  },
  "luminance": 0.23402
}

Semantic roles & 50–950 ramp

primary
#D842D7
secondary
#9CDA9C
accent
#E9403F
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#170C15
muted
#857D84

Preview Lab

Preview with #D842D7

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

Preview Lab → · Contrast checker → · Palette generator →

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