#D21BAC#D21BAC

#D21BAC is a mid, highly saturated pink. Relative luminance 0.175; OKLCH L 59.2% C 0.245 H 339.2°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#D21BAC
RGBrgb(210, 27, 172)
HSLhsl(312, 77%, 46%)
HSVhsv(312, 87%, 82%)
CMYKcmyk(0%, 87.1%, 18.1%, 17.6%)
CIE-LABlab(48.84, 76.88, -32.13)
CIE-LCHlch(48.84, 83.33, 337.32°)
OKLaboklab(59.19% 0.2295 -0.0872)
OKLCHoklch(59.19% 0.246 339.2)
XYZxyz(34.4177, 17.4677, 40.5808)
Luminance0.1746 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D21BAC #1BD241
analogous
#9D1BD2 #D21BAC #D21B51
triadic
#D21BAC #ACD21B #1BACD2
tetradic
#D21BAC #D29D1B #1BD241 #1B51D2
square
#D21BAC #D29D1B #1BD241 #1B51D2
split-complementary
#D21BAC #51D21B #1BD29D
monochromatic
#660D53 #9C1480 #D21BAC #E743C5 #EE7AD6

Accessibility & contrast

On white

4.67
#D21BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#D21BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D21BAC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D21BAC#FFFFFF#000000##FFFFFF
##D21BAC1.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C62AF
Deuteranopia (green-blind)
#6D7EA8
Tritanopia (blue-blind)
#DF2767
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #d21bac;
/* rgb */ color: rgb(210, 27, 172);
/* oklch */ color: oklch(59.2% 0.245 339.2);
Tailwind
colors: {
  custom: {
    50: '#e574c5',
    500: '#d21bac',
    950: '#000000',
  },
}
SCSS
$custom: #d21bac;
$custom-light: #e574c5;
$custom-dark: #000000;
JSON
{
  "hex": "#d21bac",
  "rgb": {
    "r": 210,
    "g": 27,
    "b": 172
  },
  "hsl": {
    "h": 312.459,
    "s": 77.215,
    "l": 46.471
  },
  "oklch": {
    "l": 0.59186,
    "c": 0.2455,
    "h": 339.2
  },
  "luminance": 0.17464
}

Semantic roles & 50–950 ramp

primary
#D21BAC
secondary
#73D588
accent
#F45C34
background
#FEF7FC
surface
#FDEEF8
border
#D5C9D1
text
#170A13
muted
#857C82

Preview Lab

Preview with #D21BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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