#D042A7#D042A7

#D042A7 is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.3% C 0.206 H 341.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#D042A7
RGBrgb(208, 66, 167)
HSLhsl(317, 60%, 54%)
HSVhsv(317, 68%, 82%)
CMYKcmyk(0%, 68.3%, 19.7%, 18.4%)
CIE-LABlab(51.95, 65.28, -24.38)
CIE-LCHlch(51.95, 69.68, 339.52°)
OKLaboklab(61.29% 0.1952 -0.0655)
OKLCHoklch(61.29% 0.206 341.5)
XYZxyz(34.9367, 20.0997, 38.5914)
Luminance0.2010 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042A7 #42D06B
analogous
#B242D0 #D042A7 #D04260
triadic
#D042A7 #A7D042 #42A7D0
tetradic
#D042A7 #D0B242 #42D06B #4260D0
square
#D042A7 #D0B242 #42D06B #4260D0
split-complementary
#D042A7 #60D042 #42D0B2
monochromatic
#791E5F #AA2A85 #D042A7 #DC73BE #E8A4D5

Accessibility & contrast

On white

4.18
#D042A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#D042A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042A7
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042A7#FFFFFF#000000##000000
##D042A71.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6DAA
Deuteranopia (green-blind)
#7984A4
Tritanopia (blue-blind)
#DC446F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d042a7;
/* rgb */ color: rgb(208, 66, 167);
/* oklch */ color: oklch(61.3% 0.206 341.5);
Tailwind
colors: {
  custom: {
    50: '#e281c1',
    500: '#d042a7',
    950: '#000000',
  },
}
SCSS
$custom: #d042a7;
$custom-light: #e281c1;
$custom-dark: #000000;
JSON
{
  "hex": "#d042a7",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 317.324,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61292,
    "c": 0.20586,
    "h": 341.5
  },
  "luminance": 0.20096
}

Semantic roles & 50–950 ramp

primary
#D042A7
secondary
#99D5AA
accent
#E37244
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D042A7

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

Preview Lab → · Contrast checker → · Palette generator →

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