#D842D6#D842D6

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

Color values

HEX#D842D6
RGBrgb(216, 66, 214)
HSLhsl(301, 66%, 55%)
HSVhsv(301, 69%, 85%)
CMYKcmyk(0%, 69.4%, 0.9%, 15.3%)
CIE-LABlab(55.43, 74.15, -46.00)
CIE-LCHlch(55.43, 87.26, 328.19°)
OKLaboklab(64.78% 0.2077 -0.1272)
OKLCHoklch(64.78% 0.244 328.5)
XYZxyz(42.4043, 23.3535, 65.8795)
Luminance0.2335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842D6 #42D844
analogous
#8F42D8 #D842D6 #D8428B
triadic
#D842D6 #D6D842 #42D6D8
tetradic
#D842D6 #D88F42 #42D844 #428BD8
square
#D842D6 #D88F42 #42D844 #428BD8
split-complementary
#D842D6 #8BD842 #42D88F
monochromatic
#841B83 #B726B5 #D842D6 #E275E1 #EDA7EC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D842D6#FFFFFF#000000##000000
##D842D61.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B78DA
Deuteranopia (green-blind)
#6B8CD2
Tritanopia (blue-blind)
#DF5788
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #d842d6;
/* rgb */ color: rgb(216, 66, 214);
/* oklch */ color: oklch(64.8% 0.244 328.5);
Tailwind
colors: {
  custom: {
    50: '#e884e3',
    500: '#d842d6',
    950: '#000000',
  },
}
SCSS
$custom: #d842d6;
$custom-light: #e884e3;
$custom-dark: #000000;
JSON
{
  "hex": "#d842d6",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 300.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.64778,
    "c": 0.24354,
    "h": 328.5
  },
  "luminance": 0.2335
}

Semantic roles & 50–950 ramp

primary
#D842D6
secondary
#9CDA9C
accent
#E9413F
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D842D6

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

Preview Lab → · Contrast checker → · Palette generator →

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