#D040B6#D040B6

#D040B6 is a mid, highly saturated pink. Relative luminance 0.205; OKLCH L 61.8% C 0.218 H 336.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#D040B6
RGBrgb(208, 64, 182)
HSLhsl(311, 61%, 53%)
HSVhsv(311, 69%, 82%)
CMYKcmyk(0%, 69.2%, 12.5%, 18.4%)
CIE-LABlab(52.35, 68.12, -32.53)
CIE-LCHlch(52.35, 75.49, 334.47°)
OKLaboklab(61.8% 0.1995 -0.0886)
OKLCHoklch(61.8% 0.218 336.1)
XYZxyz(36.2898, 20.4573, 46.2843)
Luminance0.2045 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040B6 #40D05A
analogous
#A240D0 #D040B6 #D0406E
triadic
#D040B6 #B6D040 #40B6D0
tetradic
#D040B6 #D0A240 #40D05A #406ED0
square
#D040B6 #D0A240 #40D05A #406ED0
split-complementary
#D040B6 #6ED040 #40D0A2
monochromatic
#781E68 #A92A92 #D040B6 #DC71C9 #E8A2DC

Accessibility & contrast

On white

4.13
#D040B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#D040B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040B6
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040B6#FFFFFF#000000##000000
##D040B61.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#426FB9
Deuteranopia (green-blind)
#7285B2
Tritanopia (blue-blind)
#DA4976
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d040b6;
/* rgb */ color: rgb(208, 64, 182);
/* oklch */ color: oklch(61.8% 0.218 336.1);
Tailwind
colors: {
  custom: {
    50: '#e281cc',
    500: '#d040b6',
    950: '#000000',
  },
}
SCSS
$custom: #d040b6;
$custom-light: #e281cc;
$custom-dark: #000000;
JSON
{
  "hex": "#d040b6",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 310.833,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61798,
    "c": 0.2183,
    "h": 336.1
  },
  "luminance": 0.20454
}

Semantic roles & 50–950 ramp

primary
#D040B6
secondary
#97D5A2
accent
#E46144
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D040B6

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

Preview Lab → · Contrast checker → · Palette generator →

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