#D040B2#D040B2

#D040B2 is a mid, highly saturated pink. Relative luminance 0.203; OKLCH L 61.6% C 0.216 H 337.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#D040B2
RGBrgb(208, 64, 178)
HSLhsl(313, 61%, 53%)
HSVhsv(313, 69%, 82%)
CMYKcmyk(0%, 69.2%, 14.4%, 18.4%)
CIE-LABlab(52.17, 67.54, -30.49)
CIE-LCHlch(52.17, 74.10, 335.71°)
OKLaboklab(61.61% 0.199 -0.0828)
OKLCHoklch(61.61% 0.216 337.4)
XYZxyz(35.8824, 20.2943, 44.1382)
Luminance0.2029 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040B2 #40D05E
analogous
#A640D0 #D040B2 #D0406A
triadic
#D040B2 #B2D040 #40B2D0
tetradic
#D040B2 #D0A640 #40D05E #406AD0
square
#D040B2 #D0A640 #40D05E #406AD0
split-complementary
#D040B2 #6AD040 #40D0A6
monochromatic
#781E65 #A92A8F #D040B2 #DC71C6 #E8A2DA

Accessibility & contrast

On white

4.15
#D040B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#D040B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040B2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040B2#FFFFFF#000000##000000
##D040B21.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#456EB5
Deuteranopia (green-blind)
#7484AF
Tritanopia (blue-blind)
#DB4874
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d040b2;
/* rgb */ color: rgb(208, 64, 178);
/* oklch */ color: oklch(61.6% 0.216 337.4);
Tailwind
colors: {
  custom: {
    50: '#e281c9',
    500: '#d040b2',
    950: '#000000',
  },
}
SCSS
$custom: #d040b2;
$custom-light: #e281c9;
$custom-dark: #000000;
JSON
{
  "hex": "#d040b2",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 312.5,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61607,
    "c": 0.21554,
    "h": 337.4
  },
  "luminance": 0.20291
}

Semantic roles & 50–950 ramp

primary
#D040B2
secondary
#97D5A4
accent
#E46544
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D040B2

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

Preview Lab → · Contrast checker → · Palette generator →

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