#C21FA5#C21FA5

#C21FA5 is a mid, highly saturated pink. Relative luminance 0.152; OKLCH L 56.4% C 0.231 H 337.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#C21FA5
RGBrgb(194, 31, 165)
HSLhsl(311, 72%, 44%)
HSVhsv(311, 84%, 76%)
CMYKcmyk(0%, 84%, 14.9%, 23.9%)
CIE-LABlab(45.86, 71.99, -32.86)
CIE-LCHlch(45.86, 79.13, 335.47°)
OKLaboklab(56.42% 0.2128 -0.0896)
OKLCHoklch(56.42% 0.231 337.2)
XYZxyz(29.5303, 15.1688, 36.9627)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FA5 #1FC23C
analogous
#8E1FC2 #C21FA5 #C21F54
triadic
#C21FA5 #A5C21F #1FA5C2
tetradic
#C21FA5 #C28E1F #1FC23C #1F54C2
square
#C21FA5 #C28E1F #1FC23C #1F54C2
split-complementary
#C21FA5 #54C21F #1FC28E
monochromatic
#580E4B #8D1778 #C21FA5 #E03EC3 #E973D4

Accessibility & contrast

On white

5.21
#C21FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C21FA5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21FA5#FFFFFF#000000##FFFFFF
##C21FA51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265DA8
Deuteranopia (green-blind)
#6375A1
Tritanopia (blue-blind)
#CD2D64
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c21fa5;
/* rgb */ color: rgb(194, 31, 165);
/* oklch */ color: oklch(56.4% 0.231 337.2);
Tailwind
colors: {
  custom: {
    50: '#d972c0',
    500: '#c21fa5',
    950: '#000000',
  },
}
SCSS
$custom: #c21fa5;
$custom-light: #d972c0;
$custom-dark: #000000;
JSON
{
  "hex": "#c21fa5",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 310.675,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56418,
    "c": 0.23089,
    "h": 337.2
  },
  "luminance": 0.15166
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C21FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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