#D040A2#D040A2

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

Color values

HEX#D040A2
RGBrgb(208, 64, 162)
HSLhsl(319, 61%, 53%)
HSVhsv(319, 69%, 82%)
CMYKcmyk(0%, 69.2%, 22.1%, 18.4%)
CIE-LABlab(51.48, 65.34, -22.16)
CIE-LCHlch(51.48, 68.99, 341.27°)
OKLaboklab(60.89% 0.1965 -0.0592)
OKLCHoklch(60.89% 0.205 343.2)
XYZxyz(34.3686, 19.6888, 36.1657)
Luminance0.1968 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040A2 #40D06E
analogous
#B640D0 #D040A2 #D0405A
triadic
#D040A2 #A2D040 #40A2D0
tetradic
#D040A2 #D0B640 #40D06E #405AD0
square
#D040A2 #D0B640 #40D06E #405AD0
split-complementary
#D040A2 #5AD040 #40D0B6
monochromatic
#781E5B #A92A80 #D040A2 #DC71BA #E8A2D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D040A2#FFFFFF#000000##000000
##D040A21.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)
#4E6BA5
Deuteranopia (green-blind)
#7A839F
Tritanopia (blue-blind)
#DD406B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d040a2;
/* rgb */ color: rgb(208, 64, 162);
/* oklch */ color: oklch(60.9% 0.205 343.2);
Tailwind
colors: {
  custom: {
    50: '#e280bd',
    500: '#d040a2',
    950: '#000000',
  },
}
SCSS
$custom: #d040a2;
$custom-light: #e280bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d040a2",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 319.167,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.60885,
    "c": 0.2052,
    "h": 343.2
  },
  "luminance": 0.19685
}

Semantic roles & 50–950 ramp

primary
#D040A2
secondary
#97D5AB
accent
#E47744
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D040A2

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

Preview Lab → · Contrast checker → · Palette generator →

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