#D040A9#D040A9

#D040A9 is a mid, highly saturated pink. Relative luminance 0.199; OKLCH L 61.2% C 0.210 H 340.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#D040A9
RGBrgb(208, 64, 169)
HSLhsl(316, 61%, 53%)
HSVhsv(316, 69%, 82%)
CMYKcmyk(0%, 69.2%, 18.8%, 18.4%)
CIE-LABlab(51.77, 66.28, -25.83)
CIE-LCHlch(51.77, 71.13, 338.71°)
OKLaboklab(61.19% 0.1977 -0.0695)
OKLCHoklch(61.19% 0.21 340.6)
XYZxyz(35.0082, 19.9446, 39.5344)
Luminance0.1994 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040A9 #40D067
analogous
#AF40D0 #D040A9 #D04061
triadic
#D040A9 #A9D040 #40A9D0
tetradic
#D040A9 #D0AF40 #40D067 #4061D0
square
#D040A9 #D0AF40 #40D067 #4061D0
split-complementary
#D040A9 #61D040 #40D0AF
monochromatic
#781E60 #A92A87 #D040A9 #DC71BF #E8A2D5

Accessibility & contrast

On white

4.21
#D040A9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#D040A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040A9
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040A9#FFFFFF#000000##000000
##D040A91.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6DAC
Deuteranopia (green-blind)
#7784A6
Tritanopia (blue-blind)
#DC436F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d040a9;
/* rgb */ color: rgb(208, 64, 169);
/* oklch */ color: oklch(61.2% 0.210 340.6);
Tailwind
colors: {
  custom: {
    50: '#e280c2',
    500: '#d040a9',
    950: '#000000',
  },
}
SCSS
$custom: #d040a9;
$custom-light: #e280c2;
$custom-dark: #000000;
JSON
{
  "hex": "#d040a9",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 316.25,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61192,
    "c": 0.20959,
    "h": 340.6
  },
  "luminance": 0.19941
}

Semantic roles & 50–950 ramp

primary
#D040A9
secondary
#97D5A8
accent
#E46F44
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #D040A9

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

Preview Lab → · Contrast checker → · Palette generator →

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