#D842C2#D842C2

#D842C2 is a light, highly saturated purple. Relative luminance 0.224; OKLCH L 63.7% C 0.229 H 334.5°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#D842C2
RGBrgb(216, 66, 194)
HSLhsl(309, 66%, 55%)
HSVhsv(309, 69%, 85%)
CMYKcmyk(0%, 69.4%, 10.2%, 15.3%)
CIE-LABlab(54.44, 71.08, -36.12)
CIE-LCHlch(54.44, 79.73, 333.07°)
OKLaboklab(63.74% 0.2066 -0.0987)
OKLCHoklch(63.74% 0.229 334.5)
XYZxyz(40.0051, 22.3938, 53.2439)
Luminance0.2239 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842C2 #42D858
analogous
#A342D8 #D842C2 #D84277
triadic
#D842C2 #C2D842 #42C2D8
tetradic
#D842C2 #D8A342 #42D858 #4277D8
square
#D842C2 #D8A342 #42D858 #4277D8
split-complementary
#D842C2 #77D842 #42D8A3
monochromatic
#841B75 #B726A2 #D842C2 #E275D2 #EDA7E3

Accessibility & contrast

On white

3.83
#D842C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#D842C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D842C2
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D842C2#FFFFFF#000000##000000
##D842C21.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4074C6
Deuteranopia (green-blind)
#748ABE
Tritanopia (blue-blind)
#E24E7D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d842c2;
/* rgb */ color: rgb(216, 66, 194);
/* oklch */ color: oklch(63.7% 0.229 334.5);
Tailwind
colors: {
  custom: {
    50: '#e883d5',
    500: '#d842c2',
    950: '#000000',
  },
}
SCSS
$custom: #d842c2;
$custom-light: #e883d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d842c2",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 308.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.63741,
    "c": 0.22894,
    "h": 334.5
  },
  "luminance": 0.2239
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D842C2

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

Preview Lab → · Contrast checker → · Palette generator →

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