#C21FA3#C21FA3

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

Color values

HEX#C21FA3
RGBrgb(194, 31, 163)
HSLhsl(311, 72%, 44%)
HSVhsv(311, 84%, 76%)
CMYKcmyk(0%, 84%, 16%, 23.9%)
CIE-LABlab(45.77, 71.72, -31.82)
CIE-LCHlch(45.77, 78.46, 336.08°)
OKLaboklab(56.32% 0.2127 -0.0866)
OKLCHoklch(56.32% 0.23 337.8)
XYZxyz(29.3497, 15.0966, 36.0115)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FA3 #1FC23E
analogous
#901FC2 #C21FA3 #C21F52
triadic
#C21FA3 #A3C21F #1FA3C2
tetradic
#C21FA3 #C2901F #1FC23E #1F52C2
square
#C21FA3 #C2901F #1FC23E #1F52C2
split-complementary
#C21FA3 #52C21F #1FC290
monochromatic
#580E4A #8D1777 #C21FA3 #E03EC1 #E973D2

Accessibility & contrast

On white

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

On black

4.02
#C21FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##C21FA3#FFFFFF#000000##FFFFFF
##C21FA31.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285DA6
Deuteranopia (green-blind)
#64759F
Tritanopia (blue-blind)
#CD2B62
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c21fa3;
/* rgb */ color: rgb(194, 31, 163);
/* oklch */ color: oklch(56.3% 0.230 337.8);
Tailwind
colors: {
  custom: {
    50: '#d972be',
    500: '#c21fa3',
    950: '#000000',
  },
}
SCSS
$custom: #c21fa3;
$custom-light: #d972be;
$custom-dark: #000000;
JSON
{
  "hex": "#c21fa3",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 163
  },
  "hsl": {
    "h": 311.411,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56315,
    "c": 0.22963,
    "h": 337.8
  },
  "luminance": 0.15094
}

Semantic roles & 50–950 ramp

primary
#C21FA3
secondary
#6DCF80
accent
#EF5B39
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C21FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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