#D042D0#D042D0

#D042D0 is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.3% C 0.235 H 327.9°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#D042D0
RGBrgb(208, 66, 208)
HSLhsl(300, 60%, 54%)
HSVhsv(300, 68%, 82%)
CMYKcmyk(0%, 68.3%, 0%, 18.4%)
CIE-LABlab(53.88, 71.43, -45.12)
CIE-LCHlch(53.88, 84.48, 327.72°)
OKLaboklab(63.32% 0.1992 -0.1249)
OKLCHoklch(63.32% 0.235 327.9)
XYZxyz(39.3453, 21.8632, 61.8100)
Luminance0.2186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042D0 #42D042
analogous
#8942D0 #D042D0 #D04289
triadic
#D042D0 #D0D042 #42D0D0
tetradic
#D042D0 #D08942 #42D042 #4289D0
square
#D042D0 #D08942 #42D042 #4289D0
split-complementary
#D042D0 #89D042 #42D089
monochromatic
#791E79 #AA2AAA #D042D0 #DC73DC #E8A4E8

Accessibility & contrast

On white

3.91
#D042D0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#D042D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042D0
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042D0#FFFFFF#000000##000000
##D042D01.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B75D4
Deuteranopia (green-blind)
#6787CC
Tritanopia (blue-blind)
#D65784
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d042d0;
/* rgb */ color: rgb(208, 66, 208);
/* oklch */ color: oklch(63.3% 0.235 327.9);
Tailwind
colors: {
  custom: {
    50: '#e282df',
    500: '#d042d0',
    950: '#000000',
  },
}
SCSS
$custom: #d042d0;
$custom-light: #e282df;
$custom-dark: #000000;
JSON
{
  "hex": "#d042d0",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 300,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.63319,
    "c": 0.23508,
    "h": 327.9
  },
  "luminance": 0.2186
}

Semantic roles & 50–950 ramp

primary
#D042D0
secondary
#99D599
accent
#E34444
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D042D0

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

Preview Lab → · Contrast checker → · Palette generator →

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