#D540A6#D540A6

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

Color values

HEX#D540A6
RGBrgb(213, 64, 166)
HSLhsl(319, 64%, 54%)
HSVhsv(319, 70%, 84%)
CMYKcmyk(0%, 70%, 22.1%, 16.5%)
CIE-LABlab(52.48, 67.14, -22.92)
CIE-LCHlch(52.48, 70.94, 341.15°)
OKLaboklab(61.82% 0.2019 -0.0613)
OKLCHoklch(61.82% 0.211 343.1)
XYZxyz(36.1581, 20.5698, 38.1351)
Luminance0.2057 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540A6 #40D56F
analogous
#B940D5 #D540A6 #D5405C
triadic
#D540A6 #A6D540 #40A6D5
tetradic
#D540A6 #D5B940 #40D56F #405CD5
square
#D540A6 #D5B940 #40D56F #405CD5
split-complementary
#D540A6 #5CD540 #40D5B9
monochromatic
#7F1C60 #B12785 #D540A6 #E072BD #EBA4D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D540A6#FFFFFF#000000##000000
##D540A61.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)
#4E6DA9
Deuteranopia (green-blind)
#7C86A3
Tritanopia (blue-blind)
#E2406E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d540a6;
/* rgb */ color: rgb(213, 64, 166);
/* oklch */ color: oklch(61.8% 0.211 343.1);
Tailwind
colors: {
  custom: {
    50: '#e681c0',
    500: '#d540a6',
    950: '#000000',
  },
}
SCSS
$custom: #d540a6;
$custom-light: #e681c0;
$custom-dark: #000000;
JSON
{
  "hex": "#d540a6",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 318.926,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61819,
    "c": 0.21102,
    "h": 343.1
  },
  "luminance": 0.20566
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D540A6

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

Preview Lab → · Contrast checker → · Palette generator →

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