#D842C7#D842C7

#D842C7 is a light, highly saturated purple. Relative luminance 0.226; OKLCH L 64.0% C 0.233 H 332.9°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#D842C7
RGBrgb(216, 66, 199)
HSLhsl(307, 66%, 55%)
HSVhsv(307, 69%, 85%)
CMYKcmyk(0%, 69.4%, 7.9%, 15.3%)
CIE-LABlab(54.68, 71.83, -38.62)
CIE-LCHlch(54.68, 81.55, 331.74°)
OKLaboklab(63.99% 0.207 -0.1059)
OKLCHoklch(63.99% 0.233 332.9)
XYZxyz(40.5761, 22.6222, 56.2512)
Luminance0.2262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842C7 #42D853
analogous
#9E42D8 #D842C7 #D8427C
triadic
#D842C7 #C7D842 #42C7D8
tetradic
#D842C7 #D89E42 #42D853 #427CD8
square
#D842C7 #D89E42 #42D853 #427CD8
split-complementary
#D842C7 #7CD842 #42D89E
monochromatic
#841B78 #B726A7 #D842C7 #E275D6 #EDA7E5

Accessibility & contrast

On white

3.80
#D842C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#D842C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D842C7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D842C7#FFFFFF#000000##000000
##D842C71.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C75CB
Deuteranopia (green-blind)
#728AC3
Tritanopia (blue-blind)
#E15080
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d842c7;
/* rgb */ color: rgb(216, 66, 199);
/* oklch */ color: oklch(64.0% 0.233 332.9);
Tailwind
colors: {
  custom: {
    50: '#e883d8',
    500: '#d842c7',
    950: '#000000',
  },
}
SCSS
$custom: #d842c7;
$custom-light: #e883d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d842c7",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 306.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.63991,
    "c": 0.2325,
    "h": 332.9
  },
  "luminance": 0.22619
}

Semantic roles & 50–950 ramp

primary
#D842C7
secondary
#9CDAA3
accent
#E9523F
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #D842C7

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

Preview Lab → · Contrast checker → · Palette generator →

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