#D040B1#D040B1

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

Color values

HEX#D040B1
RGBrgb(208, 64, 177)
HSLhsl(313, 61%, 53%)
HSVhsv(313, 69%, 82%)
CMYKcmyk(0%, 69.2%, 14.9%, 18.4%)
CIE-LABlab(52.12, 67.40, -29.97)
CIE-LCHlch(52.12, 73.76, 336.02°)
OKLaboklab(61.56% 0.1989 -0.0813)
OKLCHoklch(61.56% 0.215 337.8)
XYZxyz(35.7823, 20.2543, 43.6114)
Luminance0.2025 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040B1 #40D05F
analogous
#A740D0 #D040B1 #D04069
triadic
#D040B1 #B1D040 #40B1D0
tetradic
#D040B1 #D0A740 #40D05F #4069D0
square
#D040B1 #D0A740 #40D05F #4069D0
split-complementary
#D040B1 #69D040 #40D0A7
monochromatic
#781E65 #A92A8E #D040B1 #DC71C5 #E8A2D9

Accessibility & contrast

On white

4.16
#D040B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#D040B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040B1
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040B1#FFFFFF#000000##000000
##D040B11.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#456EB4
Deuteranopia (green-blind)
#7484AE
Tritanopia (blue-blind)
#DB4773
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d040b1;
/* rgb */ color: rgb(208, 64, 177);
/* oklch */ color: oklch(61.6% 0.215 337.8);
Tailwind
colors: {
  custom: {
    50: '#e281c8',
    500: '#d040b1',
    950: '#000000',
  },
}
SCSS
$custom: #d040b1;
$custom-light: #e281c8;
$custom-dark: #000000;
JSON
{
  "hex": "#d040b1",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 312.917,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.6156,
    "c": 0.21486,
    "h": 337.8
  },
  "luminance": 0.20251
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D040B1

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

Preview Lab → · Contrast checker → · Palette generator →

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