#D040A0#D040A0

#D040A0 is a mid, highly saturated pink. Relative luminance 0.196; OKLCH L 60.8% C 0.204 H 344.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#D040A0
RGBrgb(208, 64, 160)
HSLhsl(320, 61%, 53%)
HSVhsv(320, 69%, 82%)
CMYKcmyk(0%, 69.2%, 23.1%, 18.4%)
CIE-LABlab(51.40, 65.07, -21.10)
CIE-LCHlch(51.40, 68.41, 342.03°)
OKLaboklab(60.8% 0.1961 -0.0563)
OKLCHoklch(60.8% 0.204 344)
XYZxyz(34.1922, 19.6182, 35.2369)
Luminance0.1961 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040A0 #40D070
analogous
#B840D0 #D040A0 #D04058
triadic
#D040A0 #A0D040 #40A0D0
tetradic
#D040A0 #D0B840 #40D070 #4058D0
square
#D040A0 #D0B840 #40D070 #4058D0
split-complementary
#D040A0 #58D040 #40D0B8
monochromatic
#781E5A #A92A7F #D040A0 #DC71B8 #E8A2D1

Accessibility & contrast

On white

4.27
#D040A0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#D040A0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040A0
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040A0#FFFFFF#000000##000000
##D040A01.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F6BA3
Deuteranopia (green-blind)
#7A839D
Tritanopia (blue-blind)
#DD3F6A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d040a0;
/* rgb */ color: rgb(208, 64, 160);
/* oklch */ color: oklch(60.8% 0.204 344.0);
Tailwind
colors: {
  custom: {
    50: '#e280bc',
    500: '#d040a0',
    950: '#000000',
  },
}
SCSS
$custom: #d040a0;
$custom-light: #e280bc;
$custom-dark: #000000;
JSON
{
  "hex": "#d040a0",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 320,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.608,
    "c": 0.20399,
    "h": 344
  },
  "luminance": 0.19615
}

Semantic roles & 50–950 ramp

primary
#D040A0
secondary
#97D5AC
accent
#E47944
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D040A0

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

Preview Lab → · Contrast checker → · Palette generator →

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