#D540B8#D540B8

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

Color values

HEX#D540B8
RGBrgb(213, 64, 184)
HSLhsl(312, 64%, 54%)
HSVhsv(312, 70%, 84%)
CMYKcmyk(0%, 70%, 13.6%, 16.5%)
CIE-LABlab(53.25, 69.61, -32.23)
CIE-LCHlch(53.25, 76.71, 335.15°)
OKLaboklab(62.64% 0.2046 -0.0876)
OKLCHoklch(62.64% 0.223 336.8)
XYZxyz(37.9263, 21.2770, 47.4475)
Luminance0.2127 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540B8 #40D55D
analogous
#A840D5 #D540B8 #D5406E
triadic
#D540B8 #B8D540 #40B8D5
tetradic
#D540B8 #D5A840 #40D55D #406ED5
square
#D540B8 #D5A840 #40D55D #406ED5
split-complementary
#D540B8 #6ED540 #40D5A8
monochromatic
#7F1C6B #B12796 #D540B8 #E072CB #EBA4DD

Accessibility & contrast

On white

4.00
#D540B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#D540B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540B8
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540B8#FFFFFF#000000##000000
##D540B81.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4471BB
Deuteranopia (green-blind)
#7587B4
Tritanopia (blue-blind)
#E04977
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d540b8;
/* rgb */ color: rgb(213, 64, 184);
/* oklch */ color: oklch(62.6% 0.223 336.8);
Tailwind
colors: {
  custom: {
    50: '#e681cd',
    500: '#d540b8',
    950: '#000000',
  },
}
SCSS
$custom: #d540b8;
$custom-light: #e681cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d540b8",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 311.678,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62636,
    "c": 0.22262,
    "h": 336.8
  },
  "luminance": 0.21274
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D540B8

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

Preview Lab → · Contrast checker → · Palette generator →

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