#C21FAB#C21FAB

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

Color values

HEX#C21FAB
RGBrgb(194, 31, 171)
HSLhsl(308, 72%, 44%)
HSVhsv(308, 84%, 76%)
CMYKcmyk(0%, 84%, 11.9%, 23.9%)
CIE-LABlab(46.17, 72.81, -35.94)
CIE-LCHlch(46.17, 81.20, 333.73°)
OKLaboklab(56.73% 0.2131 -0.0984)
OKLCHoklch(56.73% 0.235 335.2)
XYZxyz(30.0893, 15.3924, 39.9065)
Luminance0.1539 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FAB #1FC236
analogous
#881FC2 #C21FAB #C21F5A
triadic
#C21FAB #ABC21F #1FABC2
tetradic
#C21FAB #C2881F #1FC236 #1F5AC2
square
#C21FAB #C2881F #1FC236 #1F5AC2
split-complementary
#C21FAB #5AC21F #1FC288
monochromatic
#580E4E #8D177C #C21FAB #E03EC9 #E973D8

Accessibility & contrast

On white

5.15
#C21FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#C21FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21FAB
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21FAB#FFFFFF#000000##FFFFFF
##C21FAB1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5EAE
Deuteranopia (green-blind)
#6076A7
Tritanopia (blue-blind)
#CC3167
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c21fab;
/* rgb */ color: rgb(194, 31, 171);
/* oklch */ color: oklch(56.7% 0.235 335.2);
Tailwind
colors: {
  custom: {
    50: '#d972c4',
    500: '#c21fab',
    950: '#000000',
  },
}
SCSS
$custom: #c21fab;
$custom-light: #d972c4;
$custom-dark: #000000;
JSON
{
  "hex": "#c21fab",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 171
  },
  "hsl": {
    "h": 308.466,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56732,
    "c": 0.23473,
    "h": 335.2
  },
  "luminance": 0.1539
}

Semantic roles & 50–950 ramp

primary
#C21FAB
secondary
#6DCF7B
accent
#EF5239
background
#FDF7FC
surface
#FBEDF8
border
#D4C8D1
text
#150913
muted
#837B82

Preview Lab

Preview with #C21FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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