#D042A9#D042A9

#D042A9 is a mid, highly saturated pink. Relative luminance 0.202; OKLCH L 61.4% C 0.207 H 340.7°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#D042A9
RGBrgb(208, 66, 169)
HSLhsl(316, 60%, 54%)
HSVhsv(316, 68%, 82%)
CMYKcmyk(0%, 68.3%, 18.8%, 18.4%)
CIE-LABlab(52.03, 65.55, -25.43)
CIE-LCHlch(52.03, 70.31, 338.80°)
OKLaboklab(61.38% 0.1955 -0.0684)
OKLCHoklch(61.38% 0.207 340.7)
XYZxyz(35.1230, 20.1742, 39.5727)
Luminance0.2017 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042A9 #42D069
analogous
#B042D0 #D042A9 #D04262
triadic
#D042A9 #A9D042 #42A9D0
tetradic
#D042A9 #D0B042 #42D069 #4262D0
square
#D042A9 #D0B042 #42D069 #4262D0
split-complementary
#D042A9 #62D042 #42D0B0
monochromatic
#791E60 #AA2A87 #D042A9 #DC73BF #E8A4D6

Accessibility & contrast

On white

4.17
#D042A9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#D042A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042A9
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042A9#FFFFFF#000000##000000
##D042A91.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6EAC
Deuteranopia (green-blind)
#7884A6
Tritanopia (blue-blind)
#DC4570
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d042a9;
/* rgb */ color: rgb(208, 66, 169);
/* oklch */ color: oklch(61.4% 0.207 340.7);
Tailwind
colors: {
  custom: {
    50: '#e281c2',
    500: '#d042a9',
    950: '#000000',
  },
}
SCSS
$custom: #d042a9;
$custom-light: #e281c2;
$custom-dark: #000000;
JSON
{
  "hex": "#d042a9",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 169
  },
  "hsl": {
    "h": 316.479,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61381,
    "c": 0.20714,
    "h": 340.7
  },
  "luminance": 0.20171
}

Semantic roles & 50–950 ramp

primary
#D042A9
secondary
#99D5A9
accent
#E37044
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #D042A9

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

Preview Lab → · Contrast checker → · Palette generator →

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