#C21FA1#C21FA1

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

Color values

HEX#C21FA1
RGBrgb(194, 31, 161)
HSLhsl(312, 72%, 44%)
HSVhsv(312, 84%, 76%)
CMYKcmyk(0%, 84%, 17%, 23.9%)
CIE-LABlab(45.67, 71.46, -30.78)
CIE-LCHlch(45.67, 77.80, 336.70°)
OKLaboklab(56.21% 0.2125 -0.0836)
OKLCHoklch(56.21% 0.228 338.5)
XYZxyz(29.1719, 15.0255, 35.0752)
Luminance0.1502 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FA1 #1FC240
analogous
#921FC2 #C21FA1 #C21F50
triadic
#C21FA1 #A1C21F #1FA1C2
tetradic
#C21FA1 #C2921F #1FC240 #1F50C2
square
#C21FA1 #C2921F #1FC240 #1F50C2
split-complementary
#C21FA1 #50C21F #1FC292
monochromatic
#580E49 #8D1775 #C21FA1 #E03EBF #E973D1

Accessibility & contrast

On white

5.24
#C21FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#C21FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21FA1
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21FA1#FFFFFF#000000##FFFFFF
##C21FA11.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c21fa1;
/* rgb */ color: rgb(194, 31, 161);
/* oklch */ color: oklch(56.2% 0.228 338.5);
Tailwind
colors: {
  custom: {
    50: '#d972bd',
    500: '#c21fa1',
    950: '#000000',
  },
}
SCSS
$custom: #c21fa1;
$custom-light: #d972bd;
$custom-dark: #000000;
JSON
{
  "hex": "#c21fa1",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 312.147,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56214,
    "c": 0.22838,
    "h": 338.5
  },
  "luminance": 0.15023
}

Semantic roles & 50–950 ramp

primary
#C21FA1
secondary
#6DCF81
accent
#EF5E39
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C21FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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