#D540A1#D540A1

#D540A1 is a mid, highly saturated pink. Relative luminance 0.204; OKLCH L 61.6% C 0.208 H 345.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#D540A1
RGBrgb(213, 64, 161)
HSLhsl(321, 64%, 54%)
HSVhsv(321, 70%, 84%)
CMYKcmyk(0%, 70%, 24.4%, 16.5%)
CIE-LABlab(52.28, 66.49, -20.28)
CIE-LCHlch(52.28, 69.52, 343.04°)
OKLaboklab(61.61% 0.2009 -0.0539)
OKLCHoklch(61.61% 0.208 345)
XYZxyz(35.7084, 20.3898, 35.7664)
Luminance0.2039 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540A1 #40D574
analogous
#BF40D5 #D540A1 #D54057
triadic
#D540A1 #A1D540 #40A1D5
tetradic
#D540A1 #D5BF40 #40D574 #4057D5
square
#D540A1 #D5BF40 #40D574 #4057D5
split-complementary
#D540A1 #57D540 #40D5BF
monochromatic
#7F1C5C #B12781 #D540A1 #E072BA #EBA4D2

Accessibility & contrast

On white

4.14
#D540A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#D540A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540A1
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540A1#FFFFFF#000000##000000
##D540A11.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#516DA4
Deuteranopia (green-blind)
#7E869E
Tritanopia (blue-blind)
#E33E6B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d540a1;
/* rgb */ color: rgb(213, 64, 161);
/* oklch */ color: oklch(61.6% 0.208 345.0);
Tailwind
colors: {
  custom: {
    50: '#e681bd',
    500: '#d540a1',
    950: '#000000',
  },
}
SCSS
$custom: #d540a1;
$custom-light: #e681bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d540a1",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 320.94,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61607,
    "c": 0.20805,
    "h": 345
  },
  "luminance": 0.20386
}

Semantic roles & 50–950 ramp

primary
#D540A1
secondary
#99D8AF
accent
#E77B41
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D540A1

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

Preview Lab → · Contrast checker → · Palette generator →

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