#D540AD#D540AD

#D540AD is a light, highly saturated pink. Relative luminance 0.208; OKLCH L 62.1% C 0.215 H 340.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#D540AD
RGBrgb(213, 64, 173)
HSLhsl(316, 64%, 54%)
HSVhsv(316, 70%, 84%)
CMYKcmyk(0%, 70%, 18.8%, 16.5%)
CIE-LABlab(52.77, 68.07, -26.57)
CIE-LCHlch(52.77, 73.08, 338.68°)
OKLaboklab(62.13% 0.2031 -0.0716)
OKLCHoklch(62.13% 0.215 340.6)
XYZxyz(36.8178, 20.8336, 41.6093)
Luminance0.2083 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540AD #40D568
analogous
#B240D5 #D540AD #D54063
triadic
#D540AD #ADD540 #40ADD5
tetradic
#D540AD #D5B240 #40D568 #4063D5
square
#D540AD #D5B240 #40D568 #4063D5
split-complementary
#D540AD #63D540 #40D5B2
monochromatic
#7F1C64 #B1278C #D540AD #E072C3 #EBA4D8

Accessibility & contrast

On white

4.07
#D540AD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#D540AD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540AD
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540AD#FFFFFF#000000##000000
##D540AD1.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6FB0
Deuteranopia (green-blind)
#7A87A9
Tritanopia (blue-blind)
#E24471
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d540ad;
/* rgb */ color: rgb(213, 64, 173);
/* oklch */ color: oklch(62.1% 0.215 340.6);
Tailwind
colors: {
  custom: {
    50: '#e681c5',
    500: '#d540ad',
    950: '#000000',
  },
}
SCSS
$custom: #d540ad;
$custom-light: #e681c5;
$custom-dark: #000000;
JSON
{
  "hex": "#d540ad",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 316.107,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62126,
    "c": 0.21536,
    "h": 340.6
  },
  "luminance": 0.2083
}

Semantic roles & 50–950 ramp

primary
#D540AD
secondary
#99D8AA
accent
#E76D41
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D540AD

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

Preview Lab → · Contrast checker → · Palette generator →

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