#D540A7#D540A7

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

Color values

HEX#D540A7
RGBrgb(213, 64, 167)
HSLhsl(319, 64%, 54%)
HSVhsv(319, 70%, 84%)
CMYKcmyk(0%, 70%, 21.6%, 16.5%)
CIE-LABlab(52.52, 67.27, -23.44)
CIE-LCHlch(52.52, 71.24, 340.79°)
OKLaboklab(61.86% 0.2021 -0.0628)
OKLCHoklch(61.86% 0.212 342.7)
XYZxyz(36.2502, 20.6066, 38.6201)
Luminance0.2060 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540A7 #40D56E
analogous
#B840D5 #D540A7 #D5405D
triadic
#D540A7 #A7D540 #40A7D5
tetradic
#D540A7 #D5B840 #40D56E #405DD5
square
#D540A7 #D5B840 #40D56E #405DD5
split-complementary
#D540A7 #5DD540 #40D5B8
monochromatic
#7F1C60 #B12786 #D540A7 #E072BE #EBA4D5

Accessibility & contrast

On white

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

On black

5.12
#D540A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540A7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540A7#FFFFFF#000000##000000
##D540A71.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6EAA
Deuteranopia (green-blind)
#7C86A4
Tritanopia (blue-blind)
#E2416E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d540a7;
/* rgb */ color: rgb(213, 64, 167);
/* oklch */ color: oklch(61.9% 0.212 342.7);
Tailwind
colors: {
  custom: {
    50: '#e681c1',
    500: '#d540a7',
    950: '#000000',
  },
}
SCSS
$custom: #d540a7;
$custom-light: #e681c1;
$custom-dark: #000000;
JSON
{
  "hex": "#d540a7",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 318.523,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61862,
    "c": 0.21162,
    "h": 342.7
  },
  "luminance": 0.20603
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D540A7

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

Preview Lab → · Contrast checker → · Palette generator →

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