#D21BA9#D21BA9

#D21BA9 is a mid, highly saturated pink. Relative luminance 0.173; OKLCH L 59.0% C 0.244 H 340.2°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#D21BA9
RGBrgb(210, 27, 169)
HSLhsl(313, 77%, 46%)
HSVhsv(313, 87%, 82%)
CMYKcmyk(0%, 87.1%, 19.5%, 17.6%)
CIE-LABlab(48.70, 76.51, -30.58)
CIE-LCHlch(48.70, 82.39, 338.21°)
OKLaboklab(59.04% 0.2293 -0.0827)
OKLCHoklch(59.04% 0.244 340.2)
XYZxyz(34.1328, 17.3537, 39.0805)
Luminance0.1735 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D21BA9 #1BD244
analogous
#A01BD2 #D21BA9 #D21B4D
triadic
#D21BA9 #A9D21B #1BA9D2
tetradic
#D21BA9 #D2A01B #1BD244 #1B4DD2
square
#D21BA9 #D2A01B #1BD244 #1B4DD2
split-complementary
#D21BA9 #4DD21B #1BD2A0
monochromatic
#660D52 #9C147D #D21BA9 #E743C2 #EE7AD4

Accessibility & contrast

On white

4.70
#D21BA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#D21BA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D21BA9
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D21BA9#FFFFFF#000000##FFFFFF
##D21BA91.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F62AC
Deuteranopia (green-blind)
#6E7DA5
Tritanopia (blue-blind)
#DF2565
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #d21ba9;
/* rgb */ color: rgb(210, 27, 169);
/* oklch */ color: oklch(59.0% 0.244 340.2);
Tailwind
colors: {
  custom: {
    50: '#e574c3',
    500: '#d21ba9',
    950: '#000000',
  },
}
SCSS
$custom: #d21ba9;
$custom-light: #e574c3;
$custom-dark: #000000;
JSON
{
  "hex": "#d21ba9",
  "rgb": {
    "r": 210,
    "g": 27,
    "b": 169
  },
  "hsl": {
    "h": 313.443,
    "s": 77.215,
    "l": 46.471
  },
  "oklch": {
    "l": 0.59039,
    "c": 0.24373,
    "h": 340.2
  },
  "luminance": 0.1735
}

Semantic roles & 50–950 ramp

primary
#D21BA9
secondary
#73D589
accent
#F45F34
background
#FEF7FC
surface
#FDEEF8
border
#D5C9D1
text
#170A12
muted
#857C81

Preview Lab

Preview with #D21BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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