#D540B1#D540B1

#D540B1 is a light, highly saturated pink. Relative luminance 0.210; OKLCH L 62.3% C 0.218 H 339.2°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#D540B1
RGBrgb(213, 64, 177)
HSLhsl(314, 64%, 54%)
HSVhsv(314, 70%, 84%)
CMYKcmyk(0%, 70%, 16.9%, 16.5%)
CIE-LABlab(52.94, 68.62, -28.64)
CIE-LCHlch(52.94, 74.36, 337.35°)
OKLaboklab(62.31% 0.2037 -0.0774)
OKLCHoklch(62.31% 0.218 339.2)
XYZxyz(37.2107, 20.9908, 43.6783)
Luminance0.2099 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540B1 #40D564
analogous
#AF40D5 #D540B1 #D54067
triadic
#D540B1 #B1D540 #40B1D5
tetradic
#D540B1 #D5AF40 #40D564 #4067D5
square
#D540B1 #D5AF40 #40D564 #4067D5
split-complementary
#D540B1 #67D540 #40D5AF
monochromatic
#7F1C67 #B12790 #D540B1 #E072C5 #EBA4DA

Accessibility & contrast

On white

4.04
#D540B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#D540B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540B1
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540B1#FFFFFF#000000##000000
##D540B11.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#486FB4
Deuteranopia (green-blind)
#7887AD
Tritanopia (blue-blind)
#E14673
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d540b1;
/* rgb */ color: rgb(213, 64, 177);
/* oklch */ color: oklch(62.3% 0.218 339.2);
Tailwind
colors: {
  custom: {
    50: '#e681c8',
    500: '#d540b1',
    950: '#000000',
  },
}
SCSS
$custom: #d540b1;
$custom-light: #e681c8;
$custom-dark: #000000;
JSON
{
  "hex": "#d540b1",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 314.497,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62308,
    "c": 0.21795,
    "h": 339.2
  },
  "luminance": 0.20987
}

Semantic roles & 50–950 ramp

primary
#D540B1
secondary
#99D8A8
accent
#E76941
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D540B1

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

Preview Lab → · Contrast checker → · Palette generator →

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