#C21FB1#C21FB1

#C21FB1 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 57.1% C 0.239 H 333.3°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#C21FB1
RGBrgb(194, 31, 177)
HSLhsl(306, 72%, 44%)
HSVhsv(306, 84%, 76%)
CMYKcmyk(0%, 84%, 8.8%, 23.9%)
CIE-LABlab(46.48, 73.65, -39.00)
CIE-LCHlch(46.48, 83.34, 332.10°)
OKLaboklab(57.06% 0.2132 -0.1072)
OKLCHoklch(57.06% 0.239 333.3)
XYZxyz(30.6742, 15.6264, 42.9871)
Luminance0.1562 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FB1 #1FC230
analogous
#821FC2 #C21FB1 #C21F5F
triadic
#C21FB1 #B1C21F #1FB1C2
tetradic
#C21FB1 #C2821F #1FC230 #1F5FC2
square
#C21FB1 #C2821F #1FC230 #1F5FC2
split-complementary
#C21FB1 #5FC21F #1FC282
monochromatic
#580E51 #8D1781 #C21FB1 #E03ECF #E973DC

Accessibility & contrast

On white

5.09
#C21FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#C21FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21FB1
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21FB1#FFFFFF#000000##FFFFFF
##C21FB11.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1360B5
Deuteranopia (green-blind)
#5D76AD
Tritanopia (blue-blind)
#CB356B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #c21fb1;
/* rgb */ color: rgb(194, 31, 177);
/* oklch */ color: oklch(57.1% 0.239 333.3);
Tailwind
colors: {
  custom: {
    50: '#d972c9',
    500: '#c21fb1',
    950: '#000000',
  },
}
SCSS
$custom: #c21fb1;
$custom-light: #d972c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c21fb1",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 177
  },
  "hsl": {
    "h": 306.258,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.57056,
    "c": 0.23868,
    "h": 333.3
  },
  "luminance": 0.15624
}

Semantic roles & 50–950 ramp

primary
#C21FB1
secondary
#6DCF78
accent
#EF4C39
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #C21FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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