#C21FB0#C21FB0

#C21FB0 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 57.0% C 0.238 H 333.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#C21FB0
RGBrgb(194, 31, 176)
HSLhsl(307, 72%, 44%)
HSVhsv(307, 84%, 76%)
CMYKcmyk(0%, 84%, 9.3%, 23.9%)
CIE-LABlab(46.43, 73.51, -38.49)
CIE-LCHlch(46.43, 82.98, 332.36°)
OKLaboklab(57% 0.2132 -0.1058)
OKLCHoklch(57% 0.238 333.6)
XYZxyz(30.5749, 15.5867, 42.4641)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FB0 #1FC231
analogous
#831FC2 #C21FB0 #C21F5F
triadic
#C21FB0 #B0C21F #1FB0C2
tetradic
#C21FB0 #C2831F #1FC231 #1F5FC2
square
#C21FB0 #C2831F #1FC231 #1F5FC2
split-complementary
#C21FB0 #5FC21F #1FC283
monochromatic
#580E50 #8D1780 #C21FB0 #E03ECE #E973DC

Accessibility & contrast

On white

5.10
#C21FB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C21FB0
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21FB0#FFFFFF#000000##FFFFFF
##C21FB01.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155FB4
Deuteranopia (green-blind)
#5E76AC
Tritanopia (blue-blind)
#CB346A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #c21fb0;
/* rgb */ color: rgb(194, 31, 176);
/* oklch */ color: oklch(57.0% 0.238 333.6);
Tailwind
colors: {
  custom: {
    50: '#d972c8',
    500: '#c21fb0',
    950: '#000000',
  },
}
SCSS
$custom: #c21fb0;
$custom-light: #d972c8;
$custom-dark: #000000;
JSON
{
  "hex": "#c21fb0",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 176
  },
  "hsl": {
    "h": 306.626,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.57001,
    "c": 0.23801,
    "h": 333.6
  },
  "luminance": 0.15584
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C21FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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