#D042C5#D042C5

#D042C5 is a light, highly saturated purple. Relative luminance 0.213; OKLCH L 62.7% C 0.227 H 331.2°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#D042C5
RGBrgb(208, 66, 197)
HSLhsl(305, 60%, 54%)
HSVhsv(305, 68%, 82%)
CMYKcmyk(0%, 68.3%, 5.3%, 18.4%)
CIE-LABlab(53.32, 69.67, -39.69)
CIE-LCHlch(53.32, 80.19, 330.33°)
OKLaboklab(62.73% 0.1987 -0.1092)
OKLCHoklch(62.73% 0.227 331.2)
XYZxyz(38.0386, 21.3405, 54.9282)
Luminance0.2134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042C5 #42D04D
analogous
#9442D0 #D042C5 #D0427E
triadic
#D042C5 #C5D042 #42C5D0
tetradic
#D042C5 #D09442 #42D04D #427ED0
square
#D042C5 #D09442 #42D04D #427ED0
split-complementary
#D042C5 #7ED042 #42D094
monochromatic
#791E72 #AA2AA0 #D042C5 #DC73D4 #E8A4E3

Accessibility & contrast

On white

3.99
#D042C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#D042C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042C5
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042C5#FFFFFF#000000##000000
##D042C51.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3873C9
Deuteranopia (green-blind)
#6C86C1
Tritanopia (blue-blind)
#D8527E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d042c5;
/* rgb */ color: rgb(208, 66, 197);
/* oklch */ color: oklch(62.7% 0.227 331.2);
Tailwind
colors: {
  custom: {
    50: '#e282d7',
    500: '#d042c5',
    950: '#000000',
  },
}
SCSS
$custom: #d042c5;
$custom-light: #e282d7;
$custom-dark: #000000;
JSON
{
  "hex": "#d042c5",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 304.648,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62733,
    "c": 0.22674,
    "h": 331.2
  },
  "luminance": 0.21338
}

Semantic roles & 50–950 ramp

primary
#D042C5
secondary
#99D59D
accent
#E35144
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D042C5

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

Preview Lab → · Contrast checker → · Palette generator →

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