#D540BC#D540BC

#D540BC is a light, highly saturated pink. Relative luminance 0.214; OKLCH L 62.8% C 0.225 H 335.5°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#D540BC
RGBrgb(213, 64, 188)
HSLhsl(310, 64%, 54%)
HSVhsv(310, 70%, 84%)
CMYKcmyk(0%, 70%, 11.7%, 16.5%)
CIE-LABlab(53.44, 70.18, -34.26)
CIE-LCHlch(53.44, 78.10, 333.98°)
OKLaboklab(62.83% 0.2051 -0.0934)
OKLCHoklch(62.83% 0.225 335.5)
XYZxyz(38.3516, 21.4471, 49.6871)
Luminance0.2144 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540BC #40D559
analogous
#A440D5 #D540BC #D54072
triadic
#D540BC #BCD540 #40BCD5
tetradic
#D540BC #D5A440 #40D559 #4072D5
square
#D540BC #D5A440 #40D559 #4072D5
split-complementary
#D540BC #72D540 #40D5A4
monochromatic
#7F1C6E #B1279A #D540BC #E072CE #EBA4DF

Accessibility & contrast

On white

3.97
#D540BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#D540BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540BC
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540BC#FFFFFF#000000##000000
##D540BC1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4171BF
Deuteranopia (green-blind)
#7488B8
Tritanopia (blue-blind)
#DF4B79
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d540bc;
/* rgb */ color: rgb(213, 64, 188);
/* oklch */ color: oklch(62.8% 0.225 335.5);
Tailwind
colors: {
  custom: {
    50: '#e681d0',
    500: '#d540bc',
    950: '#000000',
  },
}
SCSS
$custom: #d540bc;
$custom-light: #e681d0;
$custom-dark: #000000;
JSON
{
  "hex": "#d540bc",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 310.067,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62829,
    "c": 0.22535,
    "h": 335.5
  },
  "luminance": 0.21444
}

Semantic roles & 50–950 ramp

primary
#D540BC
secondary
#99D8A3
accent
#E75D41
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #D540BC

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

Preview Lab → · Contrast checker → · Palette generator →

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