#D040A3#D040A3

#D040A3 is a mid, highly saturated pink. Relative luminance 0.197; OKLCH L 60.9% C 0.206 H 342.8°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#D040A3
RGBrgb(208, 64, 163)
HSLhsl(319, 61%, 53%)
HSVhsv(319, 69%, 82%)
CMYKcmyk(0%, 69.2%, 21.6%, 18.4%)
CIE-LABlab(51.52, 65.47, -22.68)
CIE-LCHlch(51.52, 69.29, 340.89°)
OKLaboklab(60.93% 0.1967 -0.0607)
OKLCHoklch(60.93% 0.206 342.8)
XYZxyz(34.4578, 19.7245, 36.6357)
Luminance0.1972 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040A3 #40D06D
analogous
#B540D0 #D040A3 #D0405B
triadic
#D040A3 #A3D040 #40A3D0
tetradic
#D040A3 #D0B540 #40D06D #405BD0
square
#D040A3 #D0B540 #40D06D #405BD0
split-complementary
#D040A3 #5BD040 #40D0B5
monochromatic
#781E5C #A92A81 #D040A3 #DC71BB #E8A2D2

Accessibility & contrast

On white

4.25
#D040A3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#D040A3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040A3
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040A3#FFFFFF#000000##000000
##D040A31.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d040a3;
/* rgb */ color: rgb(208, 64, 163);
/* oklch */ color: oklch(60.9% 0.206 342.8);
Tailwind
colors: {
  custom: {
    50: '#e280be',
    500: '#d040a3',
    950: '#000000',
  },
}
SCSS
$custom: #d040a3;
$custom-light: #e280be;
$custom-dark: #000000;
JSON
{
  "hex": "#d040a3",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 318.75,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.60928,
    "c": 0.20581,
    "h": 342.8
  },
  "luminance": 0.19721
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D040A3

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

Preview Lab → · Contrast checker → · Palette generator →

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