#D21BA8#D21BA8

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

Color values

HEX#D21BA8
RGBrgb(210, 27, 168)
HSLhsl(314, 77%, 46%)
HSVhsv(314, 87%, 82%)
CMYKcmyk(0%, 87.1%, 20%, 17.6%)
CIE-LABlab(48.66, 76.38, -30.06)
CIE-LCHlch(48.66, 82.08, 338.52°)
OKLaboklab(58.99% 0.2292 -0.0813)
OKLCHoklch(58.99% 0.243 340.5)
XYZxyz(34.0393, 17.3163, 38.5880)
Luminance0.1731 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D21BA8 #1BD245
analogous
#A01BD2 #D21BA8 #D21B4D
triadic
#D21BA8 #A8D21B #1BA8D2
tetradic
#D21BA8 #D2A01B #1BD245 #1B4DD2
square
#D21BA8 #D2A01B #1BD245 #1B4DD2
split-complementary
#D21BA8 #4DD21B #1BD2A0
monochromatic
#660D51 #9C147D #D21BA8 #E743C1 #EE7AD3

Accessibility & contrast

On white

4.71
#D21BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#D21BA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D21BA8
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D21BA8#FFFFFF#000000##FFFFFF
##D21BA81.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3062AB
Deuteranopia (green-blind)
#6E7DA4
Tritanopia (blue-blind)
#DF2465
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #d21ba8;
/* rgb */ color: rgb(210, 27, 168);
/* oklch */ color: oklch(59.0% 0.243 340.5);
Tailwind
colors: {
  custom: {
    50: '#e573c2',
    500: '#d21ba8',
    950: '#000000',
  },
}
SCSS
$custom: #d21ba8;
$custom-light: #e573c2;
$custom-dark: #000000;
JSON
{
  "hex": "#d21ba8",
  "rgb": {
    "r": 210,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 313.77,
    "s": 77.215,
    "l": 46.471
  },
  "oklch": {
    "l": 0.58991,
    "c": 0.24313,
    "h": 340.5
  },
  "luminance": 0.17313
}

Semantic roles & 50–950 ramp

primary
#D21BA8
secondary
#73D58A
accent
#F46034
background
#FEF7FB
surface
#FDEEF7
border
#D5C9D0
text
#170A12
muted
#857C81

Preview Lab

Preview with #D21BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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