#D040B8#D040B8

#D040B8 is a mid, highly saturated pink. Relative luminance 0.205; OKLCH L 61.9% C 0.220 H 335.4°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#D040B8
RGBrgb(208, 64, 184)
HSLhsl(310, 61%, 53%)
HSVhsv(310, 69%, 82%)
CMYKcmyk(0%, 69.2%, 11.5%, 18.4%)
CIE-LABlab(52.44, 68.41, -33.55)
CIE-LCHlch(52.44, 76.20, 333.87°)
OKLaboklab(61.9% 0.1997 -0.0915)
OKLCHoklch(61.9% 0.22 335.4)
XYZxyz(36.4980, 20.5405, 47.3806)
Luminance0.2054 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040B8 #40D058
analogous
#A040D0 #D040B8 #D04070
triadic
#D040B8 #B8D040 #40B8D0
tetradic
#D040B8 #D0A040 #40D058 #4070D0
square
#D040B8 #D0A040 #40D058 #4070D0
split-complementary
#D040B8 #70D040 #40D0A0
monochromatic
#781E69 #A92A94 #D040B8 #DC71CA #E8A2DD

Accessibility & contrast

On white

4.11
#D040B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#D040B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040B8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040B8#FFFFFF#000000##000000
##D040B81.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#406FBB
Deuteranopia (green-blind)
#7185B4
Tritanopia (blue-blind)
#DA4A77
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d040b8;
/* rgb */ color: rgb(208, 64, 184);
/* oklch */ color: oklch(61.9% 0.220 335.4);
Tailwind
colors: {
  custom: {
    50: '#e281cd',
    500: '#d040b8',
    950: '#000000',
  },
}
SCSS
$custom: #d040b8;
$custom-light: #e281cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d040b8",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 310,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61895,
    "c": 0.21969,
    "h": 335.4
  },
  "luminance": 0.20537
}

Semantic roles & 50–950 ramp

primary
#D040B8
secondary
#97D5A1
accent
#E45F44
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D040B8

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

Preview Lab → · Contrast checker → · Palette generator →

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