#D542A1#D542A1

#D542A1 is a mid, highly saturated pink. Relative luminance 0.206; OKLCH L 61.8% C 0.206 H 345.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#D542A1
RGBrgb(213, 66, 161)
HSLhsl(321, 64%, 55%)
HSVhsv(321, 69%, 84%)
CMYKcmyk(0%, 69%, 24.4%, 16.5%)
CIE-LABlab(52.53, 65.78, -19.89)
CIE-LCHlch(52.53, 68.72, 343.18°)
OKLaboklab(61.79% 0.1987 -0.0528)
OKLCHoklch(61.79% 0.206 345.1)
XYZxyz(35.8232, 20.6195, 35.8047)
Luminance0.2062 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542A1 #42D576
analogous
#BF42D5 #D542A1 #D54258
triadic
#D542A1 #A1D542 #42A1D5
tetradic
#D542A1 #D5BF42 #42D576 #4258D5
square
#D542A1 #D5BF42 #42D576 #4258D5
split-complementary
#D542A1 #58D542 #42D5BF
monochromatic
#801C5D #B22881 #D542A1 #E074BA #EBA6D3

Accessibility & contrast

On white

4.10
#D542A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#D542A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542A1
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542A1#FFFFFF#000000##000000
##D542A11.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#536DA4
Deuteranopia (green-blind)
#7E869E
Tritanopia (blue-blind)
#E3406C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d542a1;
/* rgb */ color: rgb(213, 66, 161);
/* oklch */ color: oklch(61.8% 0.206 345.1);
Tailwind
colors: {
  custom: {
    50: '#e682bd',
    500: '#d542a1',
    950: '#000000',
  },
}
SCSS
$custom: #d542a1;
$custom-light: #e682bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d542a1",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 321.224,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.61794,
    "c": 0.20565,
    "h": 345.1
  },
  "luminance": 0.20616
}

Semantic roles & 50–950 ramp

primary
#D542A1
secondary
#9AD8B0
accent
#E77C41
background
#FEF8FB
surface
#FDF0F6
border
#D5CBD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D542A1

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

Preview Lab → · Contrast checker → · Palette generator →

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