#D540BF#D540BF

#D540BF is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 63.0% C 0.227 H 334.5°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#D540BF
RGBrgb(213, 64, 191)
HSLhsl(309, 64%, 54%)
HSVhsv(309, 70%, 84%)
CMYKcmyk(0%, 70%, 10.3%, 16.5%)
CIE-LABlab(53.58, 70.62, -35.78)
CIE-LCHlch(53.58, 79.17, 333.13°)
OKLaboklab(62.98% 0.2054 -0.0978)
OKLCHoklch(62.98% 0.227 334.5)
XYZxyz(38.6783, 21.5778, 51.4080)
Luminance0.2157 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540BF #40D556
analogous
#A140D5 #D540BF #D54075
triadic
#D540BF #BFD540 #40BFD5
tetradic
#D540BF #D5A140 #40D556 #4075D5
square
#D540BF #D5A140 #40D556 #4075D5
split-complementary
#D540BF #75D540 #40D5A1
monochromatic
#7F1C70 #B1279D #D540BF #E072D0 #EBA4E1

Accessibility & contrast

On white

3.95
#D540BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#D540BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540BF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540BF#FFFFFF#000000##000000
##D540BF1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E72C3
Deuteranopia (green-blind)
#7288BB
Tritanopia (blue-blind)
#DF4C7B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d540bf;
/* rgb */ color: rgb(213, 64, 191);
/* oklch */ color: oklch(63.0% 0.227 334.5);
Tailwind
colors: {
  custom: {
    50: '#e682d2',
    500: '#d540bf',
    950: '#000000',
  },
}
SCSS
$custom: #d540bf;
$custom-light: #e682d2;
$custom-dark: #000000;
JSON
{
  "hex": "#d540bf",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 308.859,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62977,
    "c": 0.22745,
    "h": 334.5
  },
  "luminance": 0.21575
}

Semantic roles & 50–950 ramp

primary
#D540BF
secondary
#99D8A2
accent
#E75941
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #D540BF

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

Preview Lab → · Contrast checker → · Palette generator →

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