#D540A4#D540A4

#D540A4 is a mid, highly saturated pink. Relative luminance 0.205; OKLCH L 61.7% C 0.210 H 343.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#D540A4
RGBrgb(213, 64, 164)
HSLhsl(320, 64%, 54%)
HSVhsv(320, 70%, 84%)
CMYKcmyk(0%, 70%, 23%, 16.5%)
CIE-LABlab(52.39, 66.88, -21.87)
CIE-LCHlch(52.39, 70.36, 341.90°)
OKLaboklab(61.73% 0.2015 -0.0583)
OKLCHoklch(61.73% 0.21 343.9)
XYZxyz(35.9761, 20.4969, 37.1764)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540A4 #40D571
analogous
#BC40D5 #D540A4 #D5405A
triadic
#D540A4 #A4D540 #40A4D5
tetradic
#D540A4 #D5BC40 #40D571 #405AD5
square
#D540A4 #D5BC40 #40D571 #405AD5
split-complementary
#D540A4 #5AD540 #40D5BC
monochromatic
#7F1C5E #B12784 #D540A4 #E072BC #EBA4D4

Accessibility & contrast

On white

4.12
#D540A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#D540A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540A4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540A4#FFFFFF#000000##000000
##D540A41.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#506DA7
Deuteranopia (green-blind)
#7D86A1
Tritanopia (blue-blind)
#E33F6C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d540a4;
/* rgb */ color: rgb(213, 64, 164);
/* oklch */ color: oklch(61.7% 0.210 343.9);
Tailwind
colors: {
  custom: {
    50: '#e681bf',
    500: '#d540a4',
    950: '#000000',
  },
}
SCSS
$custom: #d540a4;
$custom-light: #e681bf;
$custom-dark: #000000;
JSON
{
  "hex": "#d540a4",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 319.732,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61733,
    "c": 0.20982,
    "h": 343.9
  },
  "luminance": 0.20493
}

Semantic roles & 50–950 ramp

primary
#D540A4
secondary
#99D8AE
accent
#E77741
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D540A4

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

Preview Lab → · Contrast checker → · Palette generator →

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