#D540A3#D540A3

#D540A3 is a mid, highly saturated pink. Relative luminance 0.205; OKLCH L 61.7% C 0.209 H 344.2°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#D540A3
RGBrgb(213, 64, 163)
HSLhsl(320, 64%, 54%)
HSVhsv(320, 70%, 84%)
CMYKcmyk(0%, 70%, 23.5%, 16.5%)
CIE-LABlab(52.35, 66.75, -21.34)
CIE-LCHlch(52.35, 70.08, 342.27°)
OKLaboklab(61.69% 0.2013 -0.0569)
OKLCHoklch(61.69% 0.209 344.2)
XYZxyz(35.8862, 20.4610, 36.7027)
Luminance0.2046 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540A3 #40D572
analogous
#BC40D5 #D540A3 #D54059
triadic
#D540A3 #A3D540 #40A3D5
tetradic
#D540A3 #D5BC40 #40D572 #4059D5
square
#D540A3 #D5BC40 #40D572 #4059D5
split-complementary
#D540A3 #59D540 #40D5BC
monochromatic
#7F1C5E #B12783 #D540A3 #E072BB #EBA4D3

Accessibility & contrast

On white

4.12
#D540A3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#D540A3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540A3
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540A3#FFFFFF#000000##000000
##D540A31.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#506DA6
Deuteranopia (green-blind)
#7D86A0
Tritanopia (blue-blind)
#E33F6C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d540a3;
/* rgb */ color: rgb(213, 64, 163);
/* oklch */ color: oklch(61.7% 0.209 344.2);
Tailwind
colors: {
  custom: {
    50: '#e681be',
    500: '#d540a3',
    950: '#000000',
  },
}
SCSS
$custom: #d540a3;
$custom-light: #e681be;
$custom-dark: #000000;
JSON
{
  "hex": "#d540a3",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 320.134,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61691,
    "c": 0.20922,
    "h": 344.2
  },
  "luminance": 0.20457
}

Semantic roles & 50–950 ramp

primary
#D540A3
secondary
#99D8AE
accent
#E77941
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D540A3

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

Preview Lab → · Contrast checker → · Palette generator →

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