#D542A2#D542A2

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

Color values

HEX#D542A2
RGBrgb(213, 66, 162)
HSLhsl(321, 64%, 55%)
HSVhsv(321, 69%, 84%)
CMYKcmyk(0%, 69%, 23.9%, 16.5%)
CIE-LABlab(52.57, 65.91, -20.42)
CIE-LCHlch(52.57, 69.00, 342.79°)
OKLaboklab(61.83% 0.1989 -0.0543)
OKLCHoklch(61.83% 0.206 344.7)
XYZxyz(35.9117, 20.6549, 36.2709)
Luminance0.2065 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542A2 #42D575
analogous
#BE42D5 #D542A2 #D54259
triadic
#D542A2 #A2D542 #42A2D5
tetradic
#D542A2 #D5BE42 #42D575 #4259D5
square
#D542A2 #D5BE42 #42D575 #4259D5
split-complementary
#D542A2 #59D542 #42D5BE
monochromatic
#801C5E #B22882 #D542A2 #E074BB #EBA6D3

Accessibility & contrast

On white

4.09
#D542A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#D542A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542A2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542A2#FFFFFF#000000##000000
##D542A21.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#526EA5
Deuteranopia (green-blind)
#7E869F
Tritanopia (blue-blind)
#E3406C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d542a2;
/* rgb */ color: rgb(213, 66, 162);
/* oklch */ color: oklch(61.8% 0.206 344.7);
Tailwind
colors: {
  custom: {
    50: '#e682bd',
    500: '#d542a2',
    950: '#000000',
  },
}
SCSS
$custom: #d542a2;
$custom-light: #e682bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d542a2",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 320.816,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.61835,
    "c": 0.20623,
    "h": 344.7
  },
  "luminance": 0.20651
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D542A2

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

Preview Lab → · Contrast checker → · Palette generator →

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