#D540AC#D540AC

#D540AC is a light, highly saturated pink. Relative luminance 0.208; OKLCH L 62.1% C 0.215 H 340.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#D540AC
RGBrgb(213, 64, 172)
HSLhsl(317, 64%, 54%)
HSVhsv(317, 70%, 84%)
CMYKcmyk(0%, 70%, 19.2%, 16.5%)
CIE-LABlab(52.72, 67.94, -26.05)
CIE-LCHlch(52.72, 72.76, 339.02°)
OKLaboklab(62.08% 0.203 -0.0701)
OKLCHoklch(62.08% 0.215 340.9)
XYZxyz(36.7214, 20.7951, 41.1016)
Luminance0.2079 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540AC #40D569
analogous
#B340D5 #D540AC #D54062
triadic
#D540AC #ACD540 #40ACD5
tetradic
#D540AC #D5B340 #40D569 #4062D5
square
#D540AC #D5B340 #40D569 #4062D5
split-complementary
#D540AC #62D540 #40D5B3
monochromatic
#7F1C64 #B1278B #D540AC #E072C2 #EBA4D8

Accessibility & contrast

On white

4.07
#D540AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#D540AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540AC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540AC#FFFFFF#000000##000000
##D540AC1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6EAF
Deuteranopia (green-blind)
#7A87A8
Tritanopia (blue-blind)
#E24371
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d540ac;
/* rgb */ color: rgb(213, 64, 172);
/* oklch */ color: oklch(62.1% 0.215 340.9);
Tailwind
colors: {
  custom: {
    50: '#e681c5',
    500: '#d540ac',
    950: '#000000',
  },
}
SCSS
$custom: #d540ac;
$custom-light: #e681c5;
$custom-dark: #000000;
JSON
{
  "hex": "#d540ac",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 316.51,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62081,
    "c": 0.21473,
    "h": 340.9
  },
  "luminance": 0.20791
}

Semantic roles & 50–950 ramp

primary
#D540AC
secondary
#99D8AA
accent
#E76F41
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D540AC

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

Preview Lab → · Contrast checker → · Palette generator →

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