#C21FA9#C21FA9

#C21FA9 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.6% C 0.233 H 335.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#C21FA9
RGBrgb(194, 31, 169)
HSLhsl(309, 72%, 44%)
HSVhsv(309, 84%, 76%)
CMYKcmyk(0%, 84%, 12.9%, 23.9%)
CIE-LABlab(46.07, 72.53, -34.92)
CIE-LCHlch(46.07, 80.50, 334.29°)
OKLaboklab(56.63% 0.213 -0.0955)
OKLCHoklch(56.63% 0.233 335.9)
XYZxyz(29.9001, 15.3168, 38.9102)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FA9 #1FC238
analogous
#891FC2 #C21FA9 #C21F58
triadic
#C21FA9 #A9C21F #1FA9C2
tetradic
#C21FA9 #C2891F #1FC238 #1F58C2
square
#C21FA9 #C2891F #1FC238 #1F58C2
split-complementary
#C21FA9 #58C21F #1FC289
monochromatic
#580E4D #8D177B #C21FA9 #E03EC7 #E973D7

Accessibility & contrast

On white

5.17
#C21FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#C21FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21FA9
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21FA9#FFFFFF#000000##FFFFFF
##C21FA91.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215EAC
Deuteranopia (green-blind)
#6175A5
Tritanopia (blue-blind)
#CC3066
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c21fa9;
/* rgb */ color: rgb(194, 31, 169);
/* oklch */ color: oklch(56.6% 0.233 335.9);
Tailwind
colors: {
  custom: {
    50: '#d972c3',
    500: '#c21fa9',
    950: '#000000',
  },
}
SCSS
$custom: #c21fa9;
$custom-light: #d972c3;
$custom-dark: #000000;
JSON
{
  "hex": "#c21fa9",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 309.202,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56626,
    "c": 0.23344,
    "h": 335.9
  },
  "luminance": 0.15314
}

Semantic roles & 50–950 ramp

primary
#C21FA9
secondary
#6DCF7C
accent
#EF5539
background
#FDF7FC
surface
#FBEDF8
border
#D4C8D1
text
#150912
muted
#837B81

Preview Lab

Preview with #C21FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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