#D040B3#D040B3

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

Color values

HEX#D040B3
RGBrgb(208, 64, 179)
HSLhsl(312, 61%, 53%)
HSVhsv(312, 69%, 82%)
CMYKcmyk(0%, 69.2%, 13.9%, 18.4%)
CIE-LABlab(52.21, 67.68, -31.00)
CIE-LCHlch(52.21, 74.44, 335.39°)
OKLaboklab(61.65% 0.1992 -0.0842)
OKLCHoklch(61.65% 0.216 337.1)
XYZxyz(35.9831, 20.3346, 44.6689)
Luminance0.2033 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040B3 #40D05D
analogous
#A540D0 #D040B3 #D0406B
triadic
#D040B3 #B3D040 #40B3D0
tetradic
#D040B3 #D0A540 #40D05D #406BD0
square
#D040B3 #D0A540 #40D05D #406BD0
split-complementary
#D040B3 #6BD040 #40D0A5
monochromatic
#781E66 #A92A8F #D040B3 #DC71C7 #E8A2DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D040B3#FFFFFF#000000##000000
##D040B31.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#446EB6
Deuteranopia (green-blind)
#7484B0
Tritanopia (blue-blind)
#DB4874
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d040b3;
/* rgb */ color: rgb(208, 64, 179);
/* oklch */ color: oklch(61.7% 0.216 337.1);
Tailwind
colors: {
  custom: {
    50: '#e281ca',
    500: '#d040b3',
    950: '#000000',
  },
}
SCSS
$custom: #d040b3;
$custom-light: #e281ca;
$custom-dark: #000000;
JSON
{
  "hex": "#d040b3",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 312.083,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61654,
    "c": 0.21623,
    "h": 337.1
  },
  "luminance": 0.20331
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D040B3

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

Preview Lab → · Contrast checker → · Palette generator →

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