#D042A0#D042A0

#D042A0 is a mid, highly saturated pink. Relative luminance 0.198; OKLCH L 61.0% C 0.202 H 344.1°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#D042A0
RGBrgb(208, 66, 160)
HSLhsl(320, 60%, 54%)
HSVhsv(320, 68%, 82%)
CMYKcmyk(0%, 68.3%, 23.1%, 18.4%)
CIE-LABlab(51.66, 64.34, -20.70)
CIE-LCHlch(51.66, 67.59, 342.17°)
OKLaboklab(60.99% 0.1938 -0.0552)
OKLCHoklch(60.99% 0.202 344.1)
XYZxyz(34.3070, 19.8479, 35.2751)
Luminance0.1984 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042A0 #42D072
analogous
#B942D0 #D042A0 #D04259
triadic
#D042A0 #A0D042 #42A0D0
tetradic
#D042A0 #D0B942 #42D072 #4259D0
square
#D042A0 #D0B942 #42D072 #4259D0
split-complementary
#D042A0 #59D042 #42D0B9
monochromatic
#791E5B #AA2A7F #D042A0 #DC73B9 #E8A4D1

Accessibility & contrast

On white

4.23
#D042A0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#D042A0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042A0
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042A0#FFFFFF#000000##000000
##D042A01.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#516CA3
Deuteranopia (green-blind)
#7B849D
Tritanopia (blue-blind)
#DD416B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d042a0;
/* rgb */ color: rgb(208, 66, 160);
/* oklch */ color: oklch(61.0% 0.202 344.1);
Tailwind
colors: {
  custom: {
    50: '#e281bc',
    500: '#d042a0',
    950: '#000000',
  },
}
SCSS
$custom: #d042a0;
$custom-light: #e281bc;
$custom-dark: #000000;
JSON
{
  "hex": "#d042a0",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 160
  },
  "hsl": {
    "h": 320.282,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.60991,
    "c": 0.20154,
    "h": 344.1
  },
  "luminance": 0.19844
}

Semantic roles & 50–950 ramp

primary
#D042A0
secondary
#99D5AD
accent
#E37A44
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D042A0

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

Preview Lab → · Contrast checker → · Palette generator →

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