#D040AC#D040AC

#D040AC is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.3% C 0.212 H 339.5°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#D040AC
RGBrgb(208, 64, 172)
HSLhsl(315, 61%, 53%)
HSVhsv(315, 69%, 82%)
CMYKcmyk(0%, 69.2%, 17.3%, 18.4%)
CIE-LABlab(51.90, 66.69, -27.39)
CIE-LCHlch(51.90, 72.10, 337.67°)
OKLaboklab(61.33% 0.1982 -0.074)
OKLCHoklch(61.33% 0.212 339.5)
XYZxyz(35.2931, 20.0586, 41.0347)
Luminance0.2006 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040AC #40D064
analogous
#AC40D0 #D040AC #D04064
triadic
#D040AC #ACD040 #40ACD0
tetradic
#D040AC #D0AC40 #40D064 #4064D0
square
#D040AC #D0AC40 #40D064 #4064D0
split-complementary
#D040AC #64D040 #40D0AC
monochromatic
#781E61 #A92A89 #D040AC #DC71C1 #E8A2D7

Accessibility & contrast

On white

4.19
#D040AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#D040AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040AC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040AC#FFFFFF#000000##000000
##D040AC1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#486DAF
Deuteranopia (green-blind)
#7684A9
Tritanopia (blue-blind)
#DC4571
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d040ac;
/* rgb */ color: rgb(208, 64, 172);
/* oklch */ color: oklch(61.3% 0.212 339.5);
Tailwind
colors: {
  custom: {
    50: '#e280c5',
    500: '#d040ac',
    950: '#000000',
  },
}
SCSS
$custom: #d040ac;
$custom-light: #e280c5;
$custom-dark: #000000;
JSON
{
  "hex": "#d040ac",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 315,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61328,
    "c": 0.21153,
    "h": 339.5
  },
  "luminance": 0.20055
}

Semantic roles & 50–950 ramp

primary
#D040AC
secondary
#97D5A6
accent
#E46C44
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D040AC

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

Preview Lab → · Contrast checker → · Palette generator →

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