#D21CBD#D21CBD

#D21CBD is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 60.1% C 0.255 H 334.1°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#D21CBD
RGBrgb(210, 28, 189)
HSLhsl(307, 76%, 47%)
HSVhsv(307, 87%, 82%)
CMYKcmyk(0%, 86.7%, 10%, 17.6%)
CIE-LABlab(49.75, 78.96, -40.68)
CIE-LCHlch(49.75, 88.82, 332.75°)
OKLaboklab(60.11% 0.2297 -0.1117)
OKLCHoklch(60.11% 0.255 334.1)
XYZxyz(36.1793, 18.2096, 49.7436)
Luminance0.1821 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D21CBD #1CD231
analogous
#8C1CD2 #D21CBD #D21C62
triadic
#D21CBD #BDD21C #1CBDD2
tetradic
#D21CBD #D28C1C #1CD231 #1C62D2
square
#D21CBD #D28C1C #1CD231 #1C62D2
split-complementary
#D21CBD #62D21C #1CD28C
monochromatic
#660E5C #9C158C #D21CBD #E645D4 #ED7BE0

Accessibility & contrast

On white

4.52
#D21CBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#D21CBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D21CBD
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D21CBD#FFFFFF#000000##000000
##D21CBD1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1266C1
Deuteranopia (green-blind)
#657FB9
Tritanopia (blue-blind)
#DC3571
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #d21cbd;
/* rgb */ color: rgb(210, 28, 189);
/* oklch */ color: oklch(60.1% 0.255 334.1);
Tailwind
colors: {
  custom: {
    50: '#e575d1',
    500: '#d21cbd',
    950: '#000000',
  },
}
SCSS
$custom: #d21cbd;
$custom-light: #e575d1;
$custom-dark: #000000;
JSON
{
  "hex": "#d21cbd",
  "rgb": {
    "r": 210,
    "g": 28,
    "b": 189
  },
  "hsl": {
    "h": 306.923,
    "s": 76.471,
    "l": 46.667
  },
  "oklch": {
    "l": 0.60106,
    "c": 0.25545,
    "h": 334.1
  },
  "luminance": 0.18206
}

Semantic roles & 50–950 ramp

primary
#D21CBD
secondary
#75D580
accent
#F34B35
background
#FEF7FC
surface
#FDEEF9
border
#D5C9D2
text
#160A14
muted
#847C82

Preview Lab

Preview with #D21CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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