#D842CF#D842CF

#D842CF is a light, highly saturated purple. Relative luminance 0.230; OKLCH L 64.4% C 0.238 H 330.5°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#D842CF
RGBrgb(216, 66, 207)
HSLhsl(304, 66%, 55%)
HSVhsv(304, 69%, 85%)
CMYKcmyk(0%, 69.4%, 4.2%, 15.3%)
CIE-LABlab(55.08, 73.05, -42.57)
CIE-LCHlch(55.08, 84.55, 329.77°)
OKLaboklab(64.4% 0.2075 -0.1173)
OKLCHoklch(64.4% 0.238 330.5)
XYZxyz(41.5294, 23.0035, 61.2722)
Luminance0.2300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842CF #42D84B
analogous
#9642D8 #D842CF #D84284
triadic
#D842CF #CFD842 #42CFD8
tetradic
#D842CF #D89642 #42D84B #4284D8
square
#D842CF #D89642 #42D84B #4284D8
split-complementary
#D842CF #84D842 #42D896
monochromatic
#841B7E #B726AE #D842CF #E275DC #EDA7E9

Accessibility & contrast

On white

3.75
#D842CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#D842CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D842CF
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D842CF#FFFFFF#000000##000000
##D842CF1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3477D3
Deuteranopia (green-blind)
#6E8BCB
Tritanopia (blue-blind)
#E05484
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d842cf;
/* rgb */ color: rgb(216, 66, 207);
/* oklch */ color: oklch(64.4% 0.238 330.5);
Tailwind
colors: {
  custom: {
    50: '#e883de',
    500: '#d842cf',
    950: '#000000',
  },
}
SCSS
$custom: #d842cf;
$custom-light: #e883de;
$custom-dark: #000000;
JSON
{
  "hex": "#d842cf",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 303.6,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.64404,
    "c": 0.23832,
    "h": 330.5
  },
  "luminance": 0.23
}

Semantic roles & 50–950 ramp

primary
#D842CF
secondary
#9CDA9F
accent
#E9493F
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D842CF

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

Preview Lab → · Contrast checker → · Palette generator →

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