#D540B7#D540B7

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

Color values

HEX#D540B7
RGBrgb(213, 64, 183)
HSLhsl(312, 64%, 54%)
HSVhsv(312, 70%, 84%)
CMYKcmyk(0%, 70%, 14.1%, 16.5%)
CIE-LABlab(53.21, 69.46, -31.72)
CIE-LCHlch(53.21, 76.36, 335.46°)
OKLaboklab(62.59% 0.2045 -0.0862)
OKLCHoklch(62.59% 0.222 337.2)
XYZxyz(37.8219, 21.2352, 46.8974)
Luminance0.2123 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540B7 #40D55E
analogous
#A940D5 #D540B7 #D5406C
triadic
#D540B7 #B7D540 #40B7D5
tetradic
#D540B7 #D5A940 #40D55E #406CD5
square
#D540B7 #D5A940 #40D55E #406CD5
split-complementary
#D540B7 #6CD540 #40D5A9
monochromatic
#7F1C6B #B12795 #D540B7 #E072CA #EBA4DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D540B7#FFFFFF#000000##000000
##D540B71.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)
#4470BA
Deuteranopia (green-blind)
#7687B3
Tritanopia (blue-blind)
#E04876
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d540b7;
/* rgb */ color: rgb(213, 64, 183);
/* oklch */ color: oklch(62.6% 0.222 337.2);
Tailwind
colors: {
  custom: {
    50: '#e681cd',
    500: '#d540b7',
    950: '#000000',
  },
}
SCSS
$custom: #d540b7;
$custom-light: #e681cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d540b7",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 312.081,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62588,
    "c": 0.22194,
    "h": 337.2
  },
  "luminance": 0.21232
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D540B7

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

Preview Lab → · Contrast checker → · Palette generator →

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