#D21CBC#D21CBC

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

Color values

HEX#D21CBC
RGBrgb(210, 28, 188)
HSLhsl(307, 76%, 47%)
HSVhsv(307, 87%, 82%)
CMYKcmyk(0%, 86.7%, 10.5%, 17.6%)
CIE-LABlab(49.70, 78.82, -40.17)
CIE-LCHlch(49.70, 88.47, 332.99°)
OKLaboklab(60.05% 0.2297 -0.1103)
OKLCHoklch(60.05% 0.255 334.4)
XYZxyz(36.0712, 18.1664, 49.1739)
Luminance0.1816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D21CBC #1CD232
analogous
#8D1CD2 #D21CBC #D21C61
triadic
#D21CBC #BCD21C #1CBCD2
tetradic
#D21CBC #D28D1C #1CD232 #1C61D2
square
#D21CBC #D28D1C #1CD232 #1C61D2
split-complementary
#D21CBC #61D21C #1CD28D
monochromatic
#660E5B #9C158C #D21CBC #E645D3 #ED7BE0

Accessibility & contrast

On white

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

On black

4.63
#D21CBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D21CBC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D21CBC#FFFFFF#000000##000000
##D21CBC1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1566C0
Deuteranopia (green-blind)
#667FB8
Tritanopia (blue-blind)
#DC3471
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #d21cbc;
/* rgb */ color: rgb(210, 28, 188);
/* oklch */ color: oklch(60.1% 0.255 334.4);
Tailwind
colors: {
  custom: {
    50: '#e575d0',
    500: '#d21cbc',
    950: '#000000',
  },
}
SCSS
$custom: #d21cbc;
$custom-light: #e575d0;
$custom-dark: #000000;
JSON
{
  "hex": "#d21cbc",
  "rgb": {
    "r": 210,
    "g": 28,
    "b": 188
  },
  "hsl": {
    "h": 307.253,
    "s": 76.471,
    "l": 46.667
  },
  "oklch": {
    "l": 0.60053,
    "c": 0.25481,
    "h": 334.4
  },
  "luminance": 0.18163
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D21CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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