#D540A9#D540A9

#D540A9 is a mid, highly saturated pink. Relative luminance 0.207; OKLCH L 61.9% C 0.213 H 342.0°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#D540A9
RGBrgb(213, 64, 169)
HSLhsl(318, 64%, 54%)
HSVhsv(318, 70%, 84%)
CMYKcmyk(0%, 70%, 20.7%, 16.5%)
CIE-LABlab(52.60, 67.54, -24.49)
CIE-LCHlch(52.60, 71.84, 340.07°)
OKLaboklab(61.95% 0.2025 -0.0657)
OKLCHoklch(61.95% 0.213 342)
XYZxyz(36.4366, 20.6811, 39.6014)
Luminance0.2068 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540A9 #40D56C
analogous
#B640D5 #D540A9 #D5405F
triadic
#D540A9 #A9D540 #40A9D5
tetradic
#D540A9 #D5B640 #40D56C #405FD5
square
#D540A9 #D5B640 #40D56C #405FD5
split-complementary
#D540A9 #5FD540 #40D5B6
monochromatic
#7F1C62 #B12788 #D540A9 #E072C0 #EBA4D6

Accessibility & contrast

On white

4.09
#D540A9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#D540A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540A9
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540A9#FFFFFF#000000##000000
##D540A91.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6EAC
Deuteranopia (green-blind)
#7B86A5
Tritanopia (blue-blind)
#E2426F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d540a9;
/* rgb */ color: rgb(213, 64, 169);
/* oklch */ color: oklch(61.9% 0.213 342.0);
Tailwind
colors: {
  custom: {
    50: '#e681c2',
    500: '#d540a9',
    950: '#000000',
  },
}
SCSS
$custom: #d540a9;
$custom-light: #e681c2;
$custom-dark: #000000;
JSON
{
  "hex": "#d540a9",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 317.718,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61949,
    "c": 0.21285,
    "h": 342
  },
  "luminance": 0.20677
}

Semantic roles & 50–950 ramp

primary
#D540A9
secondary
#99D8AB
accent
#E77241
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D540A9

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

Preview Lab → · Contrast checker → · Palette generator →

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