#D042D1#D042D1

#D042D1 is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.4% C 0.236 H 327.6°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#D042D1
RGBrgb(208, 66, 209)
HSLhsl(300, 61%, 54%)
HSVhsv(300, 68%, 82%)
CMYKcmyk(0.5%, 68.4%, 0%, 18%)
CIE-LABlab(53.93, 71.59, -45.60)
CIE-LCHlch(53.93, 84.88, 327.50°)
OKLaboklab(63.37% 0.1992 -0.1263)
OKLCHoklch(63.37% 0.236 327.6)
XYZxyz(39.4687, 21.9125, 62.4600)
Luminance0.2191 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042D1 #43D142
analogous
#8942D1 #D042D1 #D1428B
triadic
#D042D1 #D1D042 #42D1D0
tetradic
#D042D1 #D18942 #43D142 #428BD1
square
#D042D1 #D18942 #43D142 #428BD1
split-complementary
#D042D1 #8BD142 #42D189
monochromatic
#7A1E7B #AB2AAC #D042D1 #DC73DD #E8A4E9

Accessibility & contrast

On white

3.90
#D042D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#D042D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042D1
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042D1#FFFFFF#000000##000000
##D042D11.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A75D5
Deuteranopia (green-blind)
#6687CD
Tritanopia (blue-blind)
#D65785
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d042d1;
/* rgb */ color: rgb(208, 66, 209);
/* oklch */ color: oklch(63.4% 0.236 327.6);
Tailwind
colors: {
  custom: {
    50: '#e282df',
    500: '#d042d1',
    950: '#000000',
  },
}
SCSS
$custom: #d042d1;
$custom-light: #e282df;
$custom-dark: #000000;
JSON
{
  "hex": "#d042d1",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 299.58,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.63374,
    "c": 0.23585,
    "h": 327.6
  },
  "luminance": 0.2191
}

Semantic roles & 50–950 ramp

primary
#D042D1
secondary
#99D699
accent
#E44445
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D042D1

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

Preview Lab → · Contrast checker → · Palette generator →

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