#D042A8#D042A8

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

Color values

HEX#D042A8
RGBrgb(208, 66, 168)
HSLhsl(317, 60%, 54%)
HSVhsv(317, 68%, 82%)
CMYKcmyk(0%, 68.3%, 19.2%, 18.4%)
CIE-LABlab(51.99, 65.42, -24.91)
CIE-LCHlch(51.99, 70.00, 339.16°)
OKLaboklab(61.34% 0.1953 -0.067)
OKLCHoklch(61.34% 0.207 341.1)
XYZxyz(35.0295, 20.1368, 39.0802)
Luminance0.2013 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042A8 #42D06A
analogous
#B142D0 #D042A8 #D04261
triadic
#D042A8 #A8D042 #42A8D0
tetradic
#D042A8 #D0B142 #42D06A #4261D0
square
#D042A8 #D0B142 #42D06A #4261D0
split-complementary
#D042A8 #61D042 #42D0B1
monochromatic
#791E60 #AA2A86 #D042A8 #DC73BF #E8A4D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D042A8#FFFFFF#000000##000000
##D042A81.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6DAB
Deuteranopia (green-blind)
#7884A5
Tritanopia (blue-blind)
#DC456F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d042a8;
/* rgb */ color: rgb(208, 66, 168);
/* oklch */ color: oklch(61.3% 0.206 341.1);
Tailwind
colors: {
  custom: {
    50: '#e281c2',
    500: '#d042a8',
    950: '#000000',
  },
}
SCSS
$custom: #d042a8;
$custom-light: #e281c2;
$custom-dark: #000000;
JSON
{
  "hex": "#d042a8",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 316.901,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61337,
    "c": 0.2065,
    "h": 341.1
  },
  "luminance": 0.20133
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D042A8

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

Preview Lab → · Contrast checker → · Palette generator →

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