#C21FAC#C21FAC

#C21FAC is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.8% C 0.235 H 334.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#C21FAC
RGBrgb(194, 31, 172)
HSLhsl(308, 72%, 44%)
HSVhsv(308, 84%, 76%)
CMYKcmyk(0%, 84%, 11.3%, 23.9%)
CIE-LABlab(46.22, 72.95, -36.45)
CIE-LCHlch(46.22, 81.55, 333.45°)
OKLaboklab(56.79% 0.2131 -0.0999)
OKLCHoklch(56.79% 0.235 334.9)
XYZxyz(30.1849, 15.4307, 40.4104)
Luminance0.1543 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FAC #1FC235
analogous
#871FC2 #C21FAC #C21F5B
triadic
#C21FAC #ACC21F #1FACC2
tetradic
#C21FAC #C2871F #1FC235 #1F5BC2
square
#C21FAC #C2871F #1FC235 #1F5BC2
split-complementary
#C21FAC #5BC21F #1FC287
monochromatic
#580E4E #8D177D #C21FAC #E03ECA #E973D9

Accessibility & contrast

On white

5.14
#C21FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#C21FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21FAC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21FAC#FFFFFF#000000##FFFFFF
##C21FAC1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5FAF
Deuteranopia (green-blind)
#6076A8
Tritanopia (blue-blind)
#CC3268
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c21fac;
/* rgb */ color: rgb(194, 31, 172);
/* oklch */ color: oklch(56.8% 0.235 334.9);
Tailwind
colors: {
  custom: {
    50: '#d972c5',
    500: '#c21fac',
    950: '#000000',
  },
}
SCSS
$custom: #c21fac;
$custom-light: #d972c5;
$custom-dark: #000000;
JSON
{
  "hex": "#c21fac",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 172
  },
  "hsl": {
    "h": 308.098,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56785,
    "c": 0.23538,
    "h": 334.9
  },
  "luminance": 0.15428
}

Semantic roles & 50–950 ramp

primary
#C21FAC
secondary
#6DCF7B
accent
#EF5139
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #C21FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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