#C21D9D#C21D9D

#C21D9D is a mid, highly saturated pink. Relative luminance 0.148; OKLCH L 55.9% C 0.227 H 339.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#C21D9D
RGBrgb(194, 29, 157)
HSLhsl(313, 74%, 44%)
HSVhsv(313, 85%, 76%)
CMYKcmyk(0%, 85.1%, 19.1%, 23.9%)
CIE-LABlab(45.34, 71.34, -28.90)
CIE-LCHlch(45.34, 76.97, 337.95°)
OKLaboklab(55.92% 0.2134 -0.0782)
OKLCHoklch(55.92% 0.227 339.9)
XYZxyz(28.7742, 14.7854, 33.2303)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21D9D #1DC242
analogous
#941DC2 #C21D9D #C21D4A
triadic
#C21D9D #9DC21D #1D9DC2
tetradic
#C21D9D #C2941D #1DC242 #1D4AC2
square
#C21D9D #C2941D #1DC242 #1D4AC2
split-complementary
#C21D9D #4AC21D #1DC294
monochromatic
#580D47 #8D1572 #C21D9D #E23BBC #EA70CE

Accessibility & contrast

On white

5.31
#C21D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#C21D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21D9D
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21D9D#FFFFFF#000000##FFFFFF
##C21D9D1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5BA0
Deuteranopia (green-blind)
#667499
Tritanopia (blue-blind)
#CE255F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #c21d9d;
/* rgb */ color: rgb(194, 29, 157);
/* oklch */ color: oklch(55.9% 0.227 339.9);
Tailwind
colors: {
  custom: {
    50: '#d971ba',
    500: '#c21d9d',
    950: '#000000',
  },
}
SCSS
$custom: #c21d9d;
$custom-light: #d971ba;
$custom-dark: #000000;
JSON
{
  "hex": "#c21d9d",
  "rgb": {
    "r": 194,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 313.455,
    "s": 73.991,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55916,
    "c": 0.22729,
    "h": 339.9
  },
  "luminance": 0.14782
}

Semantic roles & 50–950 ramp

primary
#C21D9D
secondary
#6BD082
accent
#F16137
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #C21D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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