#D540B3#D540B3

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

Color values

HEX#D540B3
RGBrgb(213, 64, 179)
HSLhsl(314, 64%, 54%)
HSVhsv(314, 70%, 84%)
CMYKcmyk(0%, 70%, 16%, 16.5%)
CIE-LABlab(53.03, 68.90, -29.67)
CIE-LCHlch(53.03, 75.02, 336.70°)
OKLaboklab(62.4% 0.204 -0.0803)
OKLCHoklch(62.4% 0.219 338.5)
XYZxyz(37.4115, 21.0711, 44.7359)
Luminance0.2107 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540B3 #40D562
analogous
#AC40D5 #D540B3 #D54069
triadic
#D540B3 #B3D540 #40B3D5
tetradic
#D540B3 #D5AC40 #40D562 #4069D5
square
#D540B3 #D5AC40 #40D562 #4069D5
split-complementary
#D540B3 #69D540 #40D5AC
monochromatic
#7F1C68 #B12791 #D540B3 #E072C7 #EBA4DB

Accessibility & contrast

On white

4.03
#D540B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#D540B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540B3
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540B3#FFFFFF#000000##000000
##D540B31.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4770B6
Deuteranopia (green-blind)
#7787AF
Tritanopia (blue-blind)
#E14674
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d540b3;
/* rgb */ color: rgb(213, 64, 179);
/* oklch */ color: oklch(62.4% 0.219 338.5);
Tailwind
colors: {
  custom: {
    50: '#e681ca',
    500: '#d540b3',
    950: '#000000',
  },
}
SCSS
$custom: #d540b3;
$custom-light: #e681ca;
$custom-dark: #000000;
JSON
{
  "hex": "#d540b3",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 313.691,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.624,
    "c": 0.21926,
    "h": 338.5
  },
  "luminance": 0.21068
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D540B3

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

Preview Lab → · Contrast checker → · Palette generator →

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