#D040A4#D040A4

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

Color values

HEX#D040A4
RGBrgb(208, 64, 164)
HSLhsl(318, 61%, 53%)
HSVhsv(318, 69%, 82%)
CMYKcmyk(0%, 69.2%, 21.2%, 18.4%)
CIE-LABlab(51.57, 65.60, -23.21)
CIE-LCHlch(51.57, 69.59, 340.52°)
OKLaboklab(60.97% 0.1968 -0.0622)
OKLCHoklch(60.97% 0.206 342.5)
XYZxyz(34.5478, 19.7604, 37.1095)
Luminance0.1976 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040A4 #40D06C
analogous
#B440D0 #D040A4 #D0405C
triadic
#D040A4 #A4D040 #40A4D0
tetradic
#D040A4 #D0B440 #40D06C #405CD0
square
#D040A4 #D0B440 #40D06C #405CD0
split-complementary
#D040A4 #5CD040 #40D0B4
monochromatic
#781E5C #A92A82 #D040A4 #DC71BB #E8A2D3

Accessibility & contrast

On white

4.24
#D040A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#D040A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040A4
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040A4#FFFFFF#000000##000000
##D040A41.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6CA7
Deuteranopia (green-blind)
#7983A1
Tritanopia (blue-blind)
#DD416C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d040a4;
/* rgb */ color: rgb(208, 64, 164);
/* oklch */ color: oklch(61.0% 0.206 342.5);
Tailwind
colors: {
  custom: {
    50: '#e280bf',
    500: '#d040a4',
    950: '#000000',
  },
}
SCSS
$custom: #d040a4;
$custom-light: #e280bf;
$custom-dark: #000000;
JSON
{
  "hex": "#d040a4",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 318.333,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.60971,
    "c": 0.20643,
    "h": 342.5
  },
  "luminance": 0.19757
}

Semantic roles & 50–950 ramp

primary
#D040A4
secondary
#97D5AA
accent
#E47544
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D040A4

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

Preview Lab → · Contrast checker → · Palette generator →

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