#D040A1#D040A1

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

Color values

HEX#D040A1
RGBrgb(208, 64, 161)
HSLhsl(320, 61%, 53%)
HSVhsv(320, 69%, 82%)
CMYKcmyk(0%, 69.2%, 22.6%, 18.4%)
CIE-LABlab(51.44, 65.21, -21.63)
CIE-LCHlch(51.44, 68.70, 341.65°)
OKLaboklab(60.84% 0.1963 -0.0577)
OKLCHoklch(60.84% 0.205 343.6)
XYZxyz(34.2801, 19.6534, 35.6994)
Luminance0.1965 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040A1 #40D06F
analogous
#B740D0 #D040A1 #D04059
triadic
#D040A1 #A1D040 #40A1D0
tetradic
#D040A1 #D0B740 #40D06F #4059D0
square
#D040A1 #D0B740 #40D06F #4059D0
split-complementary
#D040A1 #59D040 #40D0B7
monochromatic
#781E5B #A92A80 #D040A1 #DC71B9 #E8A2D1

Accessibility & contrast

On white

4.26
#D040A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#D040A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040A1
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040A1#FFFFFF#000000##000000
##D040A11.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6BA4
Deuteranopia (green-blind)
#7A839E
Tritanopia (blue-blind)
#DD406B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d040a1;
/* rgb */ color: rgb(208, 64, 161);
/* oklch */ color: oklch(60.8% 0.205 343.6);
Tailwind
colors: {
  custom: {
    50: '#e280bd',
    500: '#d040a1',
    950: '#000000',
  },
}
SCSS
$custom: #d040a1;
$custom-light: #e280bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d040a1",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 319.583,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.60842,
    "c": 0.2046,
    "h": 343.6
  },
  "luminance": 0.1965
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D040A1

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

Preview Lab → · Contrast checker → · Palette generator →

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