#D540B6#D540B6

#D540B6 is a light, highly saturated pink. Relative luminance 0.212; OKLCH L 62.5% C 0.221 H 337.5°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#D540B6
RGBrgb(213, 64, 182)
HSLhsl(312, 64%, 54%)
HSVhsv(312, 70%, 84%)
CMYKcmyk(0%, 70%, 14.6%, 16.5%)
CIE-LABlab(53.16, 69.32, -31.21)
CIE-LCHlch(53.16, 76.02, 335.76°)
OKLaboklab(62.54% 0.2044 -0.0847)
OKLCHoklch(62.54% 0.221 337.5)
XYZxyz(37.7182, 21.1938, 46.3512)
Luminance0.2119 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540B6 #40D55F
analogous
#A940D5 #D540B6 #D5406C
triadic
#D540B6 #B6D540 #40B6D5
tetradic
#D540B6 #D5A940 #40D55F #406CD5
square
#D540B6 #D5A940 #40D55F #406CD5
split-complementary
#D540B6 #6CD540 #40D5A9
monochromatic
#7F1C6A #B12794 #D540B6 #E072C9 #EBA4DC

Accessibility & contrast

On white

4.01
#D540B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#D540B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540B6
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540B6#FFFFFF#000000##000000
##D540B61.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4570B9
Deuteranopia (green-blind)
#7687B2
Tritanopia (blue-blind)
#E04876
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d540b6;
/* rgb */ color: rgb(213, 64, 182);
/* oklch */ color: oklch(62.5% 0.221 337.5);
Tailwind
colors: {
  custom: {
    50: '#e681cc',
    500: '#d540b6',
    950: '#000000',
  },
}
SCSS
$custom: #d540b6;
$custom-light: #e681cc;
$custom-dark: #000000;
JSON
{
  "hex": "#d540b6",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 312.483,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62541,
    "c": 0.22127,
    "h": 337.5
  },
  "luminance": 0.2119
}

Semantic roles & 50–950 ramp

primary
#D540B6
secondary
#99D8A6
accent
#E76341
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D540B6

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

Preview Lab → · Contrast checker → · Palette generator →

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