#D52CB2#D52CB2

#D52CB2 is a mid, highly saturated pink. Relative luminance 0.192; OKLCH L 60.8% C 0.239 H 338.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#D52CB2
RGBrgb(213, 44, 178)
HSLhsl(312, 67%, 50%)
HSVhsv(312, 79%, 84%)
CMYKcmyk(0%, 79.3%, 16.4%, 16.5%)
CIE-LABlab(50.88, 74.75, -32.43)
CIE-LCHlch(50.88, 81.48, 336.54°)
OKLaboklab(60.83% 0.2219 -0.0881)
OKLCHoklch(60.83% 0.239 338.4)
XYZxyz(36.3780, 19.1655, 43.8943)
Luminance0.1916 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D52CB2 #2CD54F
analogous
#A32CD5 #D52CB2 #D52C5D
triadic
#D52CB2 #B2D52C #2CB2D5
tetradic
#D52CB2 #D5A32C #2CD54F #2C5DD5
square
#D52CB2 #D5A32C #2CD54F #2C5DD5
split-complementary
#D52CB2 #5DD52C #2CD5A3
monochromatic
#70165E #A32188 #D52CB2 #DF5FC5 #E992D7

Accessibility & contrast

On white

4.35
#D52CB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#D52CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D52CB2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D52CB2#FFFFFF#000000##000000
##D52CB21.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3669B5
Deuteranopia (green-blind)
#7182AE
Tritanopia (blue-blind)
#E1366E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d52cb2;
/* rgb */ color: rgb(213, 44, 178);
/* oklch */ color: oklch(60.8% 0.239 338.4);
Tailwind
colors: {
  custom: {
    50: '#e679c9',
    500: '#d52cb2',
    950: '#000000',
  },
}
SCSS
$custom: #d52cb2;
$custom-light: #e679c9;
$custom-dark: #000000;
JSON
{
  "hex": "#d52cb2",
  "rgb": {
    "r": 213,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 312.426,
    "s": 66.798,
    "l": 50.392
  },
  "oklch": {
    "l": 0.60835,
    "c": 0.23876,
    "h": 338.4
  },
  "luminance": 0.19162
}

Semantic roles & 50–950 ramp

primary
#D52CB2
secondary
#89D498
accent
#EA623E
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#170A13
muted
#857C82

Preview Lab

Preview with #D52CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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