#D21FB9#D21FB9

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

Color values

HEX#D21FB9
RGBrgb(210, 31, 185)
HSLhsl(308, 74%, 47%)
HSVhsv(308, 85%, 82%)
CMYKcmyk(0%, 85.2%, 11.9%, 17.6%)
CIE-LABlab(49.72, 77.89, -38.38)
CIE-LCHlch(49.72, 86.83, 333.77°)
OKLaboklab(60.02% 0.2281 -0.1051)
OKLCHoklch(60.02% 0.251 335.3)
XYZxyz(35.8259, 18.1878, 47.5133)
Luminance0.1818 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D21FB9 #1FD238
analogous
#921FD2 #D21FB9 #D21F5F
triadic
#D21FB9 #B9D21F #1FB9D2
tetradic
#D21FB9 #D2921F #1FD238 #1F5FD2
square
#D21FB9 #D2921F #1FD238 #1F5FD2
split-complementary
#D21FB9 #5FD21F #1FD292
monochromatic
#670F5B #9D178A #D21FB9 #E44ACF #EC7FDD

Accessibility & contrast

On white

4.53
#D21FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##D21FB9#FFFFFF#000000##000000
##D21FB91.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E66BD
Deuteranopia (green-blind)
#687FB5
Tritanopia (blue-blind)
#DD346F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #d21fb9;
/* rgb */ color: rgb(210, 31, 185);
/* oklch */ color: oklch(60.0% 0.251 335.3);
Tailwind
colors: {
  custom: {
    50: '#e475ce',
    500: '#d21fb9',
    950: '#000000',
  },
}
SCSS
$custom: #d21fb9;
$custom-light: #e475ce;
$custom-dark: #000000;
JSON
{
  "hex": "#d21fb9",
  "rgb": {
    "r": 210,
    "g": 31,
    "b": 185
  },
  "hsl": {
    "h": 308.38,
    "s": 74.274,
    "l": 47.255
  },
  "oklch": {
    "l": 0.60021,
    "c": 0.25115,
    "h": 335.3
  },
  "luminance": 0.18184
}

Semantic roles & 50–950 ramp

primary
#D21FB9
secondary
#78D485
accent
#F15137
background
#FEF7FC
surface
#FDEEF9
border
#D5C9D2
text
#160A14
muted
#847C82

Preview Lab

Preview with #D21FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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