#D842C1#D842C1

#D842C1 is a light, highly saturated purple. Relative luminance 0.223; OKLCH L 63.7% C 0.228 H 334.8°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#D842C1
RGBrgb(216, 66, 193)
HSLhsl(309, 66%, 55%)
HSVhsv(309, 69%, 85%)
CMYKcmyk(0%, 69.4%, 10.6%, 15.3%)
CIE-LABlab(54.40, 70.93, -35.61)
CIE-LCHlch(54.40, 79.37, 333.34°)
OKLaboklab(63.69% 0.2065 -0.0973)
OKLCHoklch(63.69% 0.228 334.8)
XYZxyz(39.8932, 22.3490, 52.6545)
Luminance0.2235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842C1 #42D859
analogous
#A442D8 #D842C1 #D84276
triadic
#D842C1 #C1D842 #42C1D8
tetradic
#D842C1 #D8A442 #42D859 #4276D8
square
#D842C1 #D8A442 #42D859 #4276D8
split-complementary
#D842C1 #76D842 #42D8A4
monochromatic
#841B74 #B726A1 #D842C1 #E275D2 #EDA7E2

Accessibility & contrast

On white

3.84
#D842C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#D842C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D842C1
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D842C1#FFFFFF#000000##000000
##D842C11.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4174C5
Deuteranopia (green-blind)
#758ABD
Tritanopia (blue-blind)
#E24E7C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d842c1;
/* rgb */ color: rgb(216, 66, 193);
/* oklch */ color: oklch(63.7% 0.228 334.8);
Tailwind
colors: {
  custom: {
    50: '#e883d4',
    500: '#d842c1',
    950: '#000000',
  },
}
SCSS
$custom: #d842c1;
$custom-light: #e883d4;
$custom-dark: #000000;
JSON
{
  "hex": "#d842c1",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 309.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.63692,
    "c": 0.22824,
    "h": 334.8
  },
  "luminance": 0.22346
}

Semantic roles & 50–950 ramp

primary
#D842C1
secondary
#9CDAA5
accent
#E9593F
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #D842C1

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

Preview Lab → · Contrast checker → · Palette generator →

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