#C21EA1#C21EA1

#C21EA1 is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 56.2% C 0.229 H 338.5°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#C21EA1
RGBrgb(194, 30, 161)
HSLhsl(312, 73%, 44%)
HSVhsv(312, 85%, 76%)
CMYKcmyk(0%, 84.5%, 17%, 23.9%)
CIE-LABlab(45.60, 71.66, -30.89)
CIE-LCHlch(45.60, 78.03, 336.68°)
OKLaboklab(56.16% 0.2132 -0.0839)
OKLCHoklch(56.16% 0.229 338.5)
XYZxyz(29.1462, 14.9741, 35.0666)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21EA1 #1EC23F
analogous
#911EC2 #C21EA1 #C21E4F
triadic
#C21EA1 #A1C21E #1EA1C2
tetradic
#C21EA1 #C2911E #1EC23F #1E4FC2
square
#C21EA1 #C2911E #1EC23F #1E4FC2
split-complementary
#C21EA1 #4FC21E #1EC291
monochromatic
#580E49 #8D1675 #C21EA1 #E13CC0 #E971D1

Accessibility & contrast

On white

5.26
#C21EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#C21EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21EA1
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21EA1#FFFFFF#000000##FFFFFF
##C21EA11.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5CA4
Deuteranopia (green-blind)
#64759D
Tritanopia (blue-blind)
#CD2961
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c21ea1;
/* rgb */ color: rgb(194, 30, 161);
/* oklch */ color: oklch(56.2% 0.229 338.5);
Tailwind
colors: {
  custom: {
    50: '#d971bd',
    500: '#c21ea1',
    950: '#000000',
  },
}
SCSS
$custom: #c21ea1;
$custom-light: #d971bd;
$custom-dark: #000000;
JSON
{
  "hex": "#c21ea1",
  "rgb": {
    "r": 194,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 312.073,
    "s": 73.214,
    "l": 43.922
  },
  "oklch": {
    "l": 0.56164,
    "c": 0.22907,
    "h": 338.5
  },
  "luminance": 0.14971
}

Semantic roles & 50–950 ramp

primary
#C21EA1
secondary
#6CD080
accent
#F05D38
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C21EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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