#C21FA6#C21FA6

#C21FA6 is a mid, highly saturated pink. Relative luminance 0.152; OKLCH L 56.5% C 0.232 H 336.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#C21FA6
RGBrgb(194, 31, 166)
HSLhsl(310, 72%, 44%)
HSVhsv(310, 84%, 76%)
CMYKcmyk(0%, 84%, 14.4%, 23.9%)
CIE-LABlab(45.91, 72.12, -33.37)
CIE-LCHlch(45.91, 79.47, 335.17°)
OKLaboklab(56.47% 0.2129 -0.091)
OKLCHoklch(56.47% 0.232 336.8)
XYZxyz(29.6217, 15.2054, 37.4439)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FA6 #1FC23B
analogous
#8D1FC2 #C21FA6 #C21F55
triadic
#C21FA6 #A6C21F #1FA6C2
tetradic
#C21FA6 #C28D1F #1FC23B #1F55C2
square
#C21FA6 #C28D1F #1FC23B #1F55C2
split-complementary
#C21FA6 #55C21F #1FC28D
monochromatic
#580E4C #8D1779 #C21FA6 #E03EC4 #E973D4

Accessibility & contrast

On white

5.20
#C21FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#C21FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21FA6
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21FA6#FFFFFF#000000##FFFFFF
##C21FA61.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255DA9
Deuteranopia (green-blind)
#6275A2
Tritanopia (blue-blind)
#CD2D64
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c21fa6;
/* rgb */ color: rgb(194, 31, 166);
/* oklch */ color: oklch(56.5% 0.232 336.8);
Tailwind
colors: {
  custom: {
    50: '#d972c1',
    500: '#c21fa6',
    950: '#000000',
  },
}
SCSS
$custom: #c21fa6;
$custom-light: #d972c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c21fa6",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 310.307,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56469,
    "c": 0.23152,
    "h": 336.8
  },
  "luminance": 0.15202
}

Semantic roles & 50–950 ramp

primary
#C21FA6
secondary
#6DCF7E
accent
#EF5839
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C21FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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