#D842D8#D842D8

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

Color values

HEX#D842D8
RGBrgb(216, 66, 216)
HSLhsl(300, 66%, 55%)
HSVhsv(300, 69%, 85%)
CMYKcmyk(0%, 69.4%, 0%, 15.3%)
CIE-LABlab(55.54, 74.47, -46.97)
CIE-LCHlch(55.54, 88.04, 327.76°)
OKLaboklab(64.89% 0.2077 -0.13)
OKLCHoklch(64.89% 0.245 328)
XYZxyz(42.6612, 23.4563, 67.2330)
Luminance0.2345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842D8 #42D842
analogous
#8D42D8 #D842D8 #D8428D
triadic
#D842D8 #D8D842 #42D8D8
tetradic
#D842D8 #D88D42 #42D842 #428DD8
square
#D842D8 #D88D42 #42D842 #428DD8
split-complementary
#D842D8 #8DD842 #42D88D
monochromatic
#841B84 #B726B7 #D842D8 #E275E2 #EDA7ED

Accessibility & contrast

On white

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

On black

5.69
#D842D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D842D8
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D842D8#FFFFFF#000000##000000
##D842D81.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2879DC
Deuteranopia (green-blind)
#698CD4
Tritanopia (blue-blind)
#DF5889
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #d842d8;
/* rgb */ color: rgb(216, 66, 216);
/* oklch */ color: oklch(64.9% 0.245 328.0);
Tailwind
colors: {
  custom: {
    50: '#e884e4',
    500: '#d842d8',
    950: '#000000',
  },
}
SCSS
$custom: #d842d8;
$custom-light: #e884e4;
$custom-dark: #000000;
JSON
{
  "hex": "#d842d8",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 300,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.64887,
    "c": 0.24505,
    "h": 328
  },
  "luminance": 0.23453
}

Semantic roles & 50–950 ramp

primary
#D842D8
secondary
#9CDA9C
accent
#E93F3F
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#170C16
muted
#857D84

Preview Lab

Preview with #D842D8

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

Preview Lab → · Contrast checker → · Palette generator →

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