#D042C1#D042C1

#D042C1 is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.5% C 0.224 H 332.5°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#D042C1
RGBrgb(208, 66, 193)
HSLhsl(306, 60%, 54%)
HSVhsv(306, 68%, 82%)
CMYKcmyk(0%, 68.3%, 7.2%, 18.4%)
CIE-LABlab(53.12, 69.05, -37.70)
CIE-LCHlch(53.12, 78.67, 331.37°)
OKLaboklab(62.53% 0.1984 -0.1034)
OKLCHoklch(62.53% 0.224 332.5)
XYZxyz(37.5864, 21.1596, 52.5463)
Luminance0.2116 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042C1 #42D051
analogous
#9842D0 #D042C1 #D0427A
triadic
#D042C1 #C1D042 #42C1D0
tetradic
#D042C1 #D09842 #42D051 #427AD0
square
#D042C1 #D09842 #42D051 #427AD0
split-complementary
#D042C1 #7AD042 #42D098
monochromatic
#791E70 #AA2A9D #D042C1 #DC73D1 #E8A4E1

Accessibility & contrast

On white

4.01
#D042C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#D042C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042C1
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042C1#FFFFFF#000000##000000
##D042C11.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B72C5
Deuteranopia (green-blind)
#6E86BD
Tritanopia (blue-blind)
#D9507C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d042c1;
/* rgb */ color: rgb(208, 66, 193);
/* oklch */ color: oklch(62.5% 0.224 332.5);
Tailwind
colors: {
  custom: {
    50: '#e282d4',
    500: '#d042c1',
    950: '#000000',
  },
}
SCSS
$custom: #d042c1;
$custom-light: #e282d4;
$custom-dark: #000000;
JSON
{
  "hex": "#d042c1",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 306.338,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62527,
    "c": 0.22378,
    "h": 332.5
  },
  "luminance": 0.21157
}

Semantic roles & 50–950 ramp

primary
#D042C1
secondary
#99D59F
accent
#E35544
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D042C1

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

Preview Lab → · Contrast checker → · Palette generator →

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