#D040AB#D040AB

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

Color values

HEX#D040AB
RGBrgb(208, 64, 171)
HSLhsl(315, 61%, 53%)
HSVhsv(315, 69%, 82%)
CMYKcmyk(0%, 69.2%, 17.8%, 18.4%)
CIE-LABlab(51.86, 66.55, -26.87)
CIE-LCHlch(51.86, 71.77, 338.01°)
OKLaboklab(61.28% 0.198 -0.0725)
OKLCHoklch(61.28% 0.211 339.9)
XYZxyz(35.1974, 20.0203, 40.5308)
Luminance0.2002 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040AB #40D065
analogous
#AD40D0 #D040AB #D04063
triadic
#D040AB #ABD040 #40ABD0
tetradic
#D040AB #D0AD40 #40D065 #4063D0
square
#D040AB #D0AD40 #40D065 #4063D0
split-complementary
#D040AB #63D040 #40D0AD
monochromatic
#781E61 #A92A88 #D040AB #DC71C1 #E8A2D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D040AB#FFFFFF#000000##000000
##D040AB1.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)
#496DAE
Deuteranopia (green-blind)
#7784A8
Tritanopia (blue-blind)
#DC4470
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d040ab;
/* rgb */ color: rgb(208, 64, 171);
/* oklch */ color: oklch(61.3% 0.211 339.9);
Tailwind
colors: {
  custom: {
    50: '#e280c4',
    500: '#d040ab',
    950: '#000000',
  },
}
SCSS
$custom: #d040ab;
$custom-light: #e280c4;
$custom-dark: #000000;
JSON
{
  "hex": "#d040ab",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 315.417,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61283,
    "c": 0.21088,
    "h": 339.9
  },
  "luminance": 0.20017
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D040AB

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

Preview Lab → · Contrast checker → · Palette generator →

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