#D540AB#D540AB

#D540AB is a light, highly saturated pink. Relative luminance 0.208; OKLCH L 62.0% C 0.214 H 341.3°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#D540AB
RGBrgb(213, 64, 171)
HSLhsl(317, 64%, 54%)
HSVhsv(317, 70%, 84%)
CMYKcmyk(0%, 70%, 19.7%, 16.5%)
CIE-LABlab(52.68, 67.80, -25.53)
CIE-LCHlch(52.68, 72.45, 339.37°)
OKLaboklab(62.04% 0.2028 -0.0686)
OKLCHoklch(62.04% 0.214 341.3)
XYZxyz(36.6257, 20.7568, 40.5977)
Luminance0.2075 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540AB #40D56A
analogous
#B540D5 #D540AB #D54061
triadic
#D540AB #ABD540 #40ABD5
tetradic
#D540AB #D5B540 #40D56A #4061D5
square
#D540AB #D5B540 #40D56A #4061D5
split-complementary
#D540AB #61D540 #40D5B5
monochromatic
#7F1C63 #B1278A #D540AB #E072C1 #EBA4D7

Accessibility & contrast

On white

4.08
#D540AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#D540AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540AB
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540AB#FFFFFF#000000##000000
##D540AB1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6EAE
Deuteranopia (green-blind)
#7A86A7
Tritanopia (blue-blind)
#E24370
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d540ab;
/* rgb */ color: rgb(213, 64, 171);
/* oklch */ color: oklch(62.0% 0.214 341.3);
Tailwind
colors: {
  custom: {
    50: '#e681c4',
    500: '#d540ab',
    950: '#000000',
  },
}
SCSS
$custom: #d540ab;
$custom-light: #e681c4;
$custom-dark: #000000;
JSON
{
  "hex": "#d540ab",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 316.913,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62037,
    "c": 0.2141,
    "h": 341.3
  },
  "luminance": 0.20753
}

Semantic roles & 50–950 ramp

primary
#D540AB
secondary
#99D8AB
accent
#E77041
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #D540AB

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

Preview Lab → · Contrast checker → · Palette generator →

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