#D042A6#D042A6

#D042A6 is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.2% C 0.205 H 341.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#D042A6
RGBrgb(208, 66, 166)
HSLhsl(318, 60%, 54%)
HSVhsv(318, 68%, 82%)
CMYKcmyk(0%, 68.3%, 20.2%, 18.4%)
CIE-LABlab(51.91, 65.14, -23.86)
CIE-LCHlch(51.91, 69.38, 339.88°)
OKLaboklab(61.25% 0.195 -0.064)
OKLCHoklch(61.25% 0.205 341.8)
XYZxyz(34.8446, 20.0629, 38.1064)
Luminance0.2006 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042A6 #42D06C
analogous
#B342D0 #D042A6 #D0425F
triadic
#D042A6 #A6D042 #42A6D0
tetradic
#D042A6 #D0B342 #42D06C #425FD0
square
#D042A6 #D0B342 #42D06C #425FD0
split-complementary
#D042A6 #5FD042 #42D0B3
monochromatic
#791E5E #AA2A85 #D042A6 #DC73BD #E8A4D4

Accessibility & contrast

On white

4.19
#D042A6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#D042A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042A6
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042A6#FFFFFF#000000##000000
##D042A61.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6DA9
Deuteranopia (green-blind)
#7984A3
Tritanopia (blue-blind)
#DD446E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d042a6;
/* rgb */ color: rgb(208, 66, 166);
/* oklch */ color: oklch(61.2% 0.205 341.8);
Tailwind
colors: {
  custom: {
    50: '#e281c0',
    500: '#d042a6',
    950: '#000000',
  },
}
SCSS
$custom: #d042a6;
$custom-light: #e281c0;
$custom-dark: #000000;
JSON
{
  "hex": "#d042a6",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 166
  },
  "hsl": {
    "h": 317.746,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61249,
    "c": 0.20523,
    "h": 341.8
  },
  "luminance": 0.20059
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D042A6

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

Preview Lab → · Contrast checker → · Palette generator →

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