#D040B4#D040B4

#D040B4 is a mid, highly saturated pink. Relative luminance 0.204; OKLCH L 61.7% C 0.217 H 336.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#D040B4
RGBrgb(208, 64, 180)
HSLhsl(312, 61%, 53%)
HSVhsv(312, 69%, 82%)
CMYKcmyk(0%, 69.2%, 13.5%, 18.4%)
CIE-LABlab(52.26, 67.83, -31.51)
CIE-LCHlch(52.26, 74.79, 335.08°)
OKLaboklab(61.7% 0.1993 -0.0857)
OKLCHoklch(61.7% 0.217 336.7)
XYZxyz(36.0846, 20.3752, 45.2035)
Luminance0.2037 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040B4 #40D05C
analogous
#A440D0 #D040B4 #D0406C
triadic
#D040B4 #B4D040 #40B4D0
tetradic
#D040B4 #D0A440 #40D05C #406CD0
square
#D040B4 #D0A440 #40D05C #406CD0
split-complementary
#D040B4 #6CD040 #40D0A4
monochromatic
#781E66 #A92A90 #D040B4 #DC71C7 #E8A2DB

Accessibility & contrast

On white

4.14
#D040B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#D040B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040B4
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040B4#FFFFFF#000000##000000
##D040B41.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#436FB7
Deuteranopia (green-blind)
#7385B1
Tritanopia (blue-blind)
#DB4875
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d040b4;
/* rgb */ color: rgb(208, 64, 180);
/* oklch */ color: oklch(61.7% 0.217 336.7);
Tailwind
colors: {
  custom: {
    50: '#e281cb',
    500: '#d040b4',
    950: '#000000',
  },
}
SCSS
$custom: #d040b4;
$custom-light: #e281cb;
$custom-dark: #000000;
JSON
{
  "hex": "#d040b4",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 311.667,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61702,
    "c": 0.21691,
    "h": 336.7
  },
  "luminance": 0.20372
}

Semantic roles & 50–950 ramp

primary
#D040B4
secondary
#97D5A3
accent
#E46344
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D040B4

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

Preview Lab → · Contrast checker → · Palette generator →

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