#D540B4#D540B4

#D540B4 is a light, highly saturated pink. Relative luminance 0.211; OKLCH L 62.4% C 0.220 H 338.2°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#D540B4
RGBrgb(213, 64, 180)
HSLhsl(313, 64%, 54%)
HSVhsv(313, 70%, 84%)
CMYKcmyk(0%, 70%, 15.5%, 16.5%)
CIE-LABlab(53.07, 69.04, -30.18)
CIE-LCHlch(53.07, 75.35, 336.38°)
OKLaboklab(62.45% 0.2041 -0.0818)
OKLCHoklch(62.45% 0.22 338.2)
XYZxyz(37.5130, 21.1117, 45.2705)
Luminance0.2111 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540B4 #40D561
analogous
#AC40D5 #D540B4 #D5406A
triadic
#D540B4 #B4D540 #40B4D5
tetradic
#D540B4 #D5AC40 #40D561 #406AD5
square
#D540B4 #D5AC40 #40D561 #406AD5
split-complementary
#D540B4 #6AD540 #40D5AC
monochromatic
#7F1C69 #B12792 #D540B4 #E072C8 #EBA4DB

Accessibility & contrast

On white

4.02
#D540B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#D540B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540B4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540B4#FFFFFF#000000##000000
##D540B41.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4670B7
Deuteranopia (green-blind)
#7787B0
Tritanopia (blue-blind)
#E14775
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d540b4;
/* rgb */ color: rgb(213, 64, 180);
/* oklch */ color: oklch(62.4% 0.220 338.2);
Tailwind
colors: {
  custom: {
    50: '#e681ca',
    500: '#d540b4',
    950: '#000000',
  },
}
SCSS
$custom: #d540b4;
$custom-light: #e681ca;
$custom-dark: #000000;
JSON
{
  "hex": "#d540b4",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 313.289,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62447,
    "c": 0.21992,
    "h": 338.2
  },
  "luminance": 0.21108
}

Semantic roles & 50–950 ramp

primary
#D540B4
secondary
#99D8A7
accent
#E76641
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D540B4

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

Preview Lab → · Contrast checker → · Palette generator →

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