#D040B0#D040B0

#D040B0 is a mid, highly saturated pink. Relative luminance 0.202; OKLCH L 61.5% C 0.214 H 338.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#D040B0
RGBrgb(208, 64, 176)
HSLhsl(313, 61%, 53%)
HSVhsv(313, 69%, 82%)
CMYKcmyk(0%, 69.2%, 15.4%, 18.4%)
CIE-LABlab(52.08, 67.26, -29.46)
CIE-LCHlch(52.08, 73.42, 336.35°)
OKLaboklab(61.51% 0.1988 -0.0798)
OKLCHoklch(61.51% 0.214 338.1)
XYZxyz(35.6830, 20.2145, 43.0884)
Luminance0.2021 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040B0 #40D060
analogous
#A840D0 #D040B0 #D04068
triadic
#D040B0 #B0D040 #40B0D0
tetradic
#D040B0 #D0A840 #40D060 #4068D0
square
#D040B0 #D0A840 #40D060 #4068D0
split-complementary
#D040B0 #68D040 #40D0A8
monochromatic
#781E64 #A92A8D #D040B0 #DC71C4 #E8A2D9

Accessibility & contrast

On white

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

On black

5.04
#D040B0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040B0
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040B0#FFFFFF#000000##000000
##D040B01.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#466EB3
Deuteranopia (green-blind)
#7584AD
Tritanopia (blue-blind)
#DB4773
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d040b0;
/* rgb */ color: rgb(208, 64, 176);
/* oklch */ color: oklch(61.5% 0.214 338.1);
Tailwind
colors: {
  custom: {
    50: '#e280c8',
    500: '#d040b0',
    950: '#000000',
  },
}
SCSS
$custom: #d040b0;
$custom-light: #e280c8;
$custom-dark: #000000;
JSON
{
  "hex": "#d040b0",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 313.333,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61513,
    "c": 0.21419,
    "h": 338.1
  },
  "luminance": 0.20211
}

Semantic roles & 50–950 ramp

primary
#D040B0
secondary
#97D5A5
accent
#E46844
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D040B0

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

Preview Lab → · Contrast checker → · Palette generator →

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