#D540B9#D540B9

#D540B9 is a light, highly saturated pink. Relative luminance 0.213; OKLCH L 62.7% C 0.223 H 336.5°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#D540B9
RGBrgb(213, 64, 185)
HSLhsl(311, 64%, 54%)
HSVhsv(311, 70%, 84%)
CMYKcmyk(0%, 70%, 13.1%, 16.5%)
CIE-LABlab(53.30, 69.75, -32.74)
CIE-LCHlch(53.30, 77.05, 334.86°)
OKLaboklab(62.68% 0.2047 -0.0891)
OKLCHoklch(62.68% 0.223 336.5)
XYZxyz(38.0315, 21.3191, 48.0015)
Luminance0.2132 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540B9 #40D55C
analogous
#A640D5 #D540B9 #D5406F
triadic
#D540B9 #B9D540 #40B9D5
tetradic
#D540B9 #D5A640 #40D55C #406FD5
square
#D540B9 #D5A640 #40D55C #406FD5
split-complementary
#D540B9 #6FD540 #40D5A6
monochromatic
#7F1C6C #B12797 #D540B9 #E072CB #EBA4DE

Accessibility & contrast

On white

3.99
#D540B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#D540B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540B9
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540B9#FFFFFF#000000##000000
##D540B91.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4371BC
Deuteranopia (green-blind)
#7587B5
Tritanopia (blue-blind)
#E04977
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d540b9;
/* rgb */ color: rgb(213, 64, 185);
/* oklch */ color: oklch(62.7% 0.223 336.5);
Tailwind
colors: {
  custom: {
    50: '#e681ce',
    500: '#d540b9',
    950: '#000000',
  },
}
SCSS
$custom: #d540b9;
$custom-light: #e681ce;
$custom-dark: #000000;
JSON
{
  "hex": "#d540b9",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 311.275,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62684,
    "c": 0.22329,
    "h": 336.5
  },
  "luminance": 0.21316
}

Semantic roles & 50–950 ramp

primary
#D540B9
secondary
#99D8A5
accent
#E76041
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D540B9

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

Preview Lab → · Contrast checker → · Palette generator →

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