#D21FBA#D21FBA

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

Color values

HEX#D21FBA
RGBrgb(210, 31, 186)
HSLhsl(308, 74%, 47%)
HSVhsv(308, 85%, 82%)
CMYKcmyk(0%, 85.2%, 11.4%, 17.6%)
CIE-LABlab(49.77, 78.03, -38.89)
CIE-LCHlch(49.77, 87.18, 333.51°)
OKLaboklab(60.07% 0.2281 -0.1066)
OKLCHoklch(60.07% 0.252 335)
XYZxyz(35.9318, 18.2302, 48.0713)
Luminance0.1823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D21FBA #1FD237
analogous
#911FD2 #D21FBA #D21F60
triadic
#D21FBA #BAD21F #1FBAD2
tetradic
#D21FBA #D2911F #1FD237 #1F60D2
square
#D21FBA #D2911F #1FD237 #1F60D2
split-complementary
#D21FBA #60D21F #1FD291
monochromatic
#670F5C #9D178B #D21FBA #E44AD0 #EC7FDE

Accessibility & contrast

On white

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

On black

4.65
#D21FBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D21FBA
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D21FBA#FFFFFF#000000##000000
##D21FBA1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D66BE
Deuteranopia (green-blind)
#677FB6
Tritanopia (blue-blind)
#DD3470
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #d21fba;
/* rgb */ color: rgb(210, 31, 186);
/* oklch */ color: oklch(60.1% 0.252 335.0);
Tailwind
colors: {
  custom: {
    50: '#e475cf',
    500: '#d21fba',
    950: '#000000',
  },
}
SCSS
$custom: #d21fba;
$custom-light: #e475cf;
$custom-dark: #000000;
JSON
{
  "hex": "#d21fba",
  "rgb": {
    "r": 210,
    "g": 31,
    "b": 186
  },
  "hsl": {
    "h": 308.045,
    "s": 74.274,
    "l": 47.255
  },
  "oklch": {
    "l": 0.60074,
    "c": 0.25179,
    "h": 335
  },
  "luminance": 0.18227
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D21FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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