#D842CA#D842CA

#D842CA is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 64.1% C 0.235 H 332.0°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#D842CA
RGBrgb(216, 66, 202)
HSLhsl(306, 66%, 55%)
HSVhsv(306, 69%, 85%)
CMYKcmyk(0%, 69.4%, 6.5%, 15.3%)
CIE-LABlab(54.83, 72.28, -40.11)
CIE-LCHlch(54.83, 82.66, 330.97°)
OKLaboklab(64.14% 0.2072 -0.1102)
OKLCHoklch(64.14% 0.235 332)
XYZxyz(40.9278, 22.7629, 58.1037)
Luminance0.2276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842CA #42D850
analogous
#9B42D8 #D842CA #D8427F
triadic
#D842CA #CAD842 #42CAD8
tetradic
#D842CA #D89B42 #42D850 #427FD8
square
#D842CA #D89B42 #42D850 #427FD8
split-complementary
#D842CA #7FD842 #42D89B
monochromatic
#841B7A #B726A9 #D842CA #E275D8 #EDA7E6

Accessibility & contrast

On white

3.78
#D842CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#D842CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D842CA
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D842CA#FFFFFF#000000##000000
##D842CA1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3976CE
Deuteranopia (green-blind)
#718BC6
Tritanopia (blue-blind)
#E15281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d842ca;
/* rgb */ color: rgb(216, 66, 202);
/* oklch */ color: oklch(64.1% 0.235 332.0);
Tailwind
colors: {
  custom: {
    50: '#e883da',
    500: '#d842ca',
    950: '#000000',
  },
}
SCSS
$custom: #d842ca;
$custom-light: #e883da;
$custom-dark: #000000;
JSON
{
  "hex": "#d842ca",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 305.6,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.64144,
    "c": 0.23467,
    "h": 332
  },
  "luminance": 0.2276
}

Semantic roles & 50–950 ramp

primary
#D842CA
secondary
#9CDAA1
accent
#E94F3F
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D842CA

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

Preview Lab → · Contrast checker → · Palette generator →

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