#D042A4#D042A4

#D042A4 is a mid, highly saturated pink. Relative luminance 0.200; OKLCH L 61.2% C 0.204 H 342.6°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#D042A4
RGBrgb(208, 66, 164)
HSLhsl(319, 60%, 54%)
HSVhsv(319, 68%, 82%)
CMYKcmyk(0%, 68.3%, 21.2%, 18.4%)
CIE-LABlab(51.83, 64.87, -22.81)
CIE-LCHlch(51.83, 68.77, 340.63°)
OKLaboklab(61.16% 0.1946 -0.0611)
OKLCHoklch(61.16% 0.204 342.6)
XYZxyz(34.6626, 19.9901, 37.1477)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042A4 #42D06E
analogous
#B542D0 #D042A4 #D0425D
triadic
#D042A4 #A4D042 #42A4D0
tetradic
#D042A4 #D0B542 #42D06E #425DD0
square
#D042A4 #D0B542 #42D06E #425DD0
split-complementary
#D042A4 #5DD042 #42D0B5
monochromatic
#791E5D #AA2A83 #D042A4 #DC73BC #E8A4D3

Accessibility & contrast

On white

4.20
#D042A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#D042A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042A4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042A4#FFFFFF#000000##000000
##D042A41.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F6DA7
Deuteranopia (green-blind)
#7A84A1
Tritanopia (blue-blind)
#DD436D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d042a4;
/* rgb */ color: rgb(208, 66, 164);
/* oklch */ color: oklch(61.2% 0.204 342.6);
Tailwind
colors: {
  custom: {
    50: '#e281bf',
    500: '#d042a4',
    950: '#000000',
  },
}
SCSS
$custom: #d042a4;
$custom-light: #e281bf;
$custom-dark: #000000;
JSON
{
  "hex": "#d042a4",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 318.592,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61162,
    "c": 0.20398,
    "h": 342.6
  },
  "luminance": 0.19987
}

Semantic roles & 50–950 ramp

primary
#D042A4
secondary
#99D5AB
accent
#E37644
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D042A4

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

Preview Lab → · Contrast checker → · Palette generator →

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