#C21FA2#C21FA2

#C21FA2 is a mid, highly saturated pink. Relative luminance 0.151; OKLCH L 56.3% C 0.229 H 338.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#C21FA2
RGBrgb(194, 31, 162)
HSLhsl(312, 72%, 44%)
HSVhsv(312, 84%, 76%)
CMYKcmyk(0%, 84%, 16.5%, 23.9%)
CIE-LABlab(45.72, 71.59, -31.30)
CIE-LCHlch(45.72, 78.13, 336.39°)
OKLaboklab(56.27% 0.2126 -0.0851)
OKLCHoklch(56.27% 0.229 338.2)
XYZxyz(29.2605, 15.0609, 35.5415)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FA2 #1FC23F
analogous
#911FC2 #C21FA2 #C21F51
triadic
#C21FA2 #A2C21F #1FA2C2
tetradic
#C21FA2 #C2911F #1FC23F #1F51C2
square
#C21FA2 #C2911F #1FC23F #1F51C2
split-complementary
#C21FA2 #51C21F #1FC291
monochromatic
#580E4A #8D1776 #C21FA2 #E03EC0 #E973D1

Accessibility & contrast

On white

5.23
#C21FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#C21FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21FA2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21FA2#FFFFFF#000000##FFFFFF
##C21FA21.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295DA5
Deuteranopia (green-blind)
#64759E
Tritanopia (blue-blind)
#CD2B62
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c21fa2;
/* rgb */ color: rgb(194, 31, 162);
/* oklch */ color: oklch(56.3% 0.229 338.2);
Tailwind
colors: {
  custom: {
    50: '#d972be',
    500: '#c21fa2',
    950: '#000000',
  },
}
SCSS
$custom: #c21fa2;
$custom-light: #d972be;
$custom-dark: #000000;
JSON
{
  "hex": "#c21fa2",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 162
  },
  "hsl": {
    "h": 311.779,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56265,
    "c": 0.22901,
    "h": 338.2
  },
  "luminance": 0.15058
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C21FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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