#D540A8#D540A8

#D540A8 is a mid, highly saturated pink. Relative luminance 0.206; OKLCH L 61.9% C 0.212 H 342.4°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#D540A8
RGBrgb(213, 64, 168)
HSLhsl(318, 64%, 54%)
HSVhsv(318, 70%, 84%)
CMYKcmyk(0%, 70%, 21.1%, 16.5%)
CIE-LABlab(52.56, 67.40, -23.97)
CIE-LCHlch(52.56, 71.54, 340.43°)
OKLaboklab(61.91% 0.2023 -0.0642)
OKLCHoklch(61.91% 0.212 342.4)
XYZxyz(36.3430, 20.6437, 39.1088)
Luminance0.2064 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540A8 #40D56D
analogous
#B840D5 #D540A8 #D5405E
triadic
#D540A8 #A8D540 #40A8D5
tetradic
#D540A8 #D5B840 #40D56D #405ED5
square
#D540A8 #D5B840 #40D56D #405ED5
split-complementary
#D540A8 #5ED540 #40D5B8
monochromatic
#7F1C61 #B12787 #D540A8 #E072BF #EBA4D6

Accessibility & contrast

On white

4.10
#D540A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#D540A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540A8
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540A8#FFFFFF#000000##000000
##D540A81.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6EAB
Deuteranopia (green-blind)
#7B86A4
Tritanopia (blue-blind)
#E2416F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d540a8;
/* rgb */ color: rgb(213, 64, 168);
/* oklch */ color: oklch(61.9% 0.212 342.4);
Tailwind
colors: {
  custom: {
    50: '#e681c2',
    500: '#d540a8',
    950: '#000000',
  },
}
SCSS
$custom: #d540a8;
$custom-light: #e681c2;
$custom-dark: #000000;
JSON
{
  "hex": "#d540a8",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 318.121,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61905,
    "c": 0.21223,
    "h": 342.4
  },
  "luminance": 0.2064
}

Semantic roles & 50–950 ramp

primary
#D540A8
secondary
#99D8AC
accent
#E77341
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D540A8

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

Preview Lab → · Contrast checker → · Palette generator →

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