#D040AA#D040AA

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

Color values

HEX#D040AA
RGBrgb(208, 64, 170)
HSLhsl(316, 61%, 53%)
HSVhsv(316, 69%, 82%)
CMYKcmyk(0%, 69.2%, 18.3%, 18.4%)
CIE-LABlab(51.82, 66.42, -26.35)
CIE-LCHlch(51.82, 71.45, 338.36°)
OKLaboklab(61.24% 0.1979 -0.071)
OKLCHoklch(61.24% 0.21 340.3)
XYZxyz(35.1024, 19.9823, 40.0307)
Luminance0.1998 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040AA #40D066
analogous
#AE40D0 #D040AA #D04062
triadic
#D040AA #AAD040 #40AAD0
tetradic
#D040AA #D0AE40 #40D066 #4062D0
square
#D040AA #D0AE40 #40D066 #4062D0
split-complementary
#D040AA #62D040 #40D0AE
monochromatic
#781E60 #A92A88 #D040AA #DC71C0 #E8A2D6

Accessibility & contrast

On white

4.20
#D040AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#D040AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040AA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040AA#FFFFFF#000000##000000
##D040AA1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6DAD
Deuteranopia (green-blind)
#7784A7
Tritanopia (blue-blind)
#DC4470
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d040aa;
/* rgb */ color: rgb(208, 64, 170);
/* oklch */ color: oklch(61.2% 0.210 340.3);
Tailwind
colors: {
  custom: {
    50: '#e280c3',
    500: '#d040aa',
    950: '#000000',
  },
}
SCSS
$custom: #d040aa;
$custom-light: #e280c3;
$custom-dark: #000000;
JSON
{
  "hex": "#d040aa",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 315.833,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61237,
    "c": 0.21023,
    "h": 340.3
  },
  "luminance": 0.19979
}

Semantic roles & 50–950 ramp

primary
#D040AA
secondary
#97D5A7
accent
#E46E44
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #D040AA

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

Preview Lab → · Contrast checker → · Palette generator →

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