#D540A5#D540A5

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

Color values

HEX#D540A5
RGBrgb(213, 64, 165)
HSLhsl(319, 64%, 54%)
HSVhsv(319, 70%, 84%)
CMYKcmyk(0%, 70%, 22.5%, 16.5%)
CIE-LABlab(52.43, 67.01, -22.39)
CIE-LCHlch(52.43, 70.65, 341.52°)
OKLaboklab(61.78% 0.2017 -0.0598)
OKLCHoklch(61.78% 0.21 343.5)
XYZxyz(36.0668, 20.5332, 37.6539)
Luminance0.2053 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540A5 #40D570
analogous
#BB40D5 #D540A5 #D5405B
triadic
#D540A5 #A5D540 #40A5D5
tetradic
#D540A5 #D5BB40 #40D570 #405BD5
square
#D540A5 #D5BB40 #40D570 #405BD5
split-complementary
#D540A5 #5BD540 #40D5BB
monochromatic
#7F1C5F #B12784 #D540A5 #E072BD #EBA4D4

Accessibility & contrast

On white

4.11
#D540A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#D540A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540A5
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540A5#FFFFFF#000000##000000
##D540A51.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F6DA8
Deuteranopia (green-blind)
#7C86A2
Tritanopia (blue-blind)
#E2406D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d540a5;
/* rgb */ color: rgb(213, 64, 165);
/* oklch */ color: oklch(61.8% 0.210 343.5);
Tailwind
colors: {
  custom: {
    50: '#e681c0',
    500: '#d540a5',
    950: '#000000',
  },
}
SCSS
$custom: #d540a5;
$custom-light: #e681c0;
$custom-dark: #000000;
JSON
{
  "hex": "#d540a5",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 319.329,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61776,
    "c": 0.21041,
    "h": 343.5
  },
  "luminance": 0.2053
}

Semantic roles & 50–950 ramp

primary
#D540A5
secondary
#99D8AD
accent
#E77641
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D540A5

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

Preview Lab → · Contrast checker → · Palette generator →

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