#C21FA4#C21FA4

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

Color values

HEX#C21FA4
RGBrgb(194, 31, 164)
HSLhsl(311, 72%, 44%)
HSVhsv(311, 84%, 76%)
CMYKcmyk(0%, 84%, 15.5%, 23.9%)
CIE-LABlab(45.82, 71.85, -32.34)
CIE-LCHlch(45.82, 78.80, 335.77°)
OKLaboklab(56.37% 0.2128 -0.0881)
OKLCHoklch(56.37% 0.23 337.5)
XYZxyz(29.4397, 15.1326, 36.4852)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FA4 #1FC23D
analogous
#8F1FC2 #C21FA4 #C21F53
triadic
#C21FA4 #A4C21F #1FA4C2
tetradic
#C21FA4 #C28F1F #1FC23D #1F53C2
square
#C21FA4 #C28F1F #1FC23D #1F53C2
split-complementary
#C21FA4 #53C21F #1FC28F
monochromatic
#580E4B #8D1777 #C21FA4 #E03EC2 #E973D3

Accessibility & contrast

On white

5.22
#C21FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#C21FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21FA4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21FA4#FFFFFF#000000##FFFFFF
##C21FA41.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275DA7
Deuteranopia (green-blind)
#6375A0
Tritanopia (blue-blind)
#CD2C63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c21fa4;
/* rgb */ color: rgb(194, 31, 164);
/* oklch */ color: oklch(56.4% 0.230 337.5);
Tailwind
colors: {
  custom: {
    50: '#d972bf',
    500: '#c21fa4',
    950: '#000000',
  },
}
SCSS
$custom: #c21fa4;
$custom-light: #d972bf;
$custom-dark: #000000;
JSON
{
  "hex": "#c21fa4",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 311.043,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56366,
    "c": 0.23026,
    "h": 337.5
  },
  "luminance": 0.1513
}

Semantic roles & 50–950 ramp

primary
#C21FA4
secondary
#6DCF7F
accent
#EF5A39
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C21FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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