#D540B2#D540B2

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

Color values

HEX#D540B2
RGBrgb(213, 64, 178)
HSLhsl(314, 64%, 54%)
HSVhsv(314, 70%, 84%)
CMYKcmyk(0%, 70%, 16.4%, 16.5%)
CIE-LABlab(52.98, 68.76, -29.16)
CIE-LCHlch(52.98, 74.69, 337.02°)
OKLaboklab(62.35% 0.2039 -0.0789)
OKLCHoklch(62.35% 0.219 338.8)
XYZxyz(37.3107, 21.0308, 44.2052)
Luminance0.2103 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540B2 #40D563
analogous
#AE40D5 #D540B2 #D54068
triadic
#D540B2 #B2D540 #40B2D5
tetradic
#D540B2 #D5AE40 #40D563 #4068D5
square
#D540B2 #D5AE40 #40D563 #4068D5
split-complementary
#D540B2 #68D540 #40D5AE
monochromatic
#7F1C68 #B12790 #D540B2 #E072C6 #EBA4DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D540B2#FFFFFF#000000##000000
##D540B21.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)
#4870B5
Deuteranopia (green-blind)
#7887AE
Tritanopia (blue-blind)
#E14674
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d540b2;
/* rgb */ color: rgb(213, 64, 178);
/* oklch */ color: oklch(62.4% 0.219 338.8);
Tailwind
colors: {
  custom: {
    50: '#e681c9',
    500: '#d540b2',
    950: '#000000',
  },
}
SCSS
$custom: #d540b2;
$custom-light: #e681c9;
$custom-dark: #000000;
JSON
{
  "hex": "#d540b2",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 314.094,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62354,
    "c": 0.2186,
    "h": 338.8
  },
  "luminance": 0.21027
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D540B2

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

Preview Lab → · Contrast checker → · Palette generator →

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