#D042D5#D042D5

#D042D5 is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 63.6% C 0.239 H 326.5°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#D042D5
RGBrgb(208, 66, 213)
HSLhsl(298, 64%, 55%)
HSVhsv(298, 69%, 84%)
CMYKcmyk(2.3%, 69%, 0%, 16.5%)
CIE-LABlab(54.15, 72.24, -47.55)
CIE-LCHlch(54.15, 86.49, 326.65°)
OKLaboklab(63.6% 0.1992 -0.1319)
OKLCHoklch(63.6% 0.239 326.5)
XYZxyz(39.9701, 22.1131, 65.1009)
Luminance0.2211 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042D5 #47D542
analogous
#8642D5 #D042D5 #D54291
triadic
#D042D5 #D5D042 #42D5D0
tetradic
#D042D5 #D58642 #47D542 #4291D5
square
#D042D5 #D58642 #47D542 #4291D5
split-complementary
#D042D5 #91D542 #42D586
monochromatic
#7D1C80 #AD28B2 #D042D5 #DC74E0 #E9A6EB

Accessibility & contrast

On white

3.87
#D042D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#D042D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042D5
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042D5#FFFFFF#000000##000000
##D042D51.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2376D9
Deuteranopia (green-blind)
#6488D1
Tritanopia (blue-blind)
#D55987
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d042d5;
/* rgb */ color: rgb(208, 66, 213);
/* oklch */ color: oklch(63.6% 0.239 326.5);
Tailwind
colors: {
  custom: {
    50: '#e283e2',
    500: '#d042d5',
    950: '#000000',
  },
}
SCSS
$custom: #d042d5;
$custom-light: #e283e2;
$custom-dark: #000000;
JSON
{
  "hex": "#d042d5",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 297.959,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.63595,
    "c": 0.23895,
    "h": 326.5
  },
  "luminance": 0.2211
}

Semantic roles & 50–950 ramp

primary
#D042D5
secondary
#9DD89A
accent
#E74147
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D042D5

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

Preview Lab → · Contrast checker → · Palette generator →

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