#D040A8#D040A8

#D040A8 is a mid, highly saturated pink. Relative luminance 0.199; OKLCH L 61.1% C 0.209 H 341.0°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#D040A8
RGBrgb(208, 64, 168)
HSLhsl(317, 61%, 53%)
HSVhsv(317, 69%, 82%)
CMYKcmyk(0%, 69.2%, 19.2%, 18.4%)
CIE-LABlab(51.73, 66.14, -25.31)
CIE-LCHlch(51.73, 70.82, 339.06°)
OKLaboklab(61.15% 0.1975 -0.0681)
OKLCHoklch(61.15% 0.209 341)
XYZxyz(34.9147, 19.9072, 39.0419)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040A8 #40D068
analogous
#B040D0 #D040A8 #D04060
triadic
#D040A8 #A8D040 #40A8D0
tetradic
#D040A8 #D0B040 #40D068 #4060D0
square
#D040A8 #D0B040 #40D068 #4060D0
split-complementary
#D040A8 #60D040 #40D0B0
monochromatic
#781E5F #A92A86 #D040A8 #DC71BE #E8A2D5

Accessibility & contrast

On white

4.22
#D040A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#D040A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040A8
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040A8#FFFFFF#000000##000000
##D040A81.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6CAB
Deuteranopia (green-blind)
#7884A5
Tritanopia (blue-blind)
#DC436E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d040a8;
/* rgb */ color: rgb(208, 64, 168);
/* oklch */ color: oklch(61.1% 0.209 341.0);
Tailwind
colors: {
  custom: {
    50: '#e280c2',
    500: '#d040a8',
    950: '#000000',
  },
}
SCSS
$custom: #d040a8;
$custom-light: #e280c2;
$custom-dark: #000000;
JSON
{
  "hex": "#d040a8",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 316.667,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61148,
    "c": 0.20894,
    "h": 341
  },
  "luminance": 0.19904
}

Semantic roles & 50–950 ramp

primary
#D040A8
secondary
#97D5A8
accent
#E47044
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D040A8

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

Preview Lab → · Contrast checker → · Palette generator →

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