#C21FA7#C21FA7

#C21FA7 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.5% C 0.232 H 336.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#C21FA7
RGBrgb(194, 31, 167)
HSLhsl(310, 72%, 44%)
HSVhsv(310, 84%, 76%)
CMYKcmyk(0%, 84%, 13.9%, 23.9%)
CIE-LABlab(45.96, 72.26, -33.89)
CIE-LCHlch(45.96, 79.81, 334.87°)
OKLaboklab(56.52% 0.2129 -0.0925)
OKLCHoklch(56.52% 0.232 336.5)
XYZxyz(29.7138, 15.2422, 37.9289)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FA7 #1FC23A
analogous
#8C1FC2 #C21FA7 #C21F55
triadic
#C21FA7 #A7C21F #1FA7C2
tetradic
#C21FA7 #C28C1F #1FC23A #1F55C2
square
#C21FA7 #C28C1F #1FC23A #1F55C2
split-complementary
#C21FA7 #55C21F #1FC28C
monochromatic
#580E4C #8D177A #C21FA7 #E03EC5 #E973D5

Accessibility & contrast

On white

5.19
#C21FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#C21FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21FA7
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21FA7#FFFFFF#000000##FFFFFF
##C21FA71.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245EAA
Deuteranopia (green-blind)
#6275A3
Tritanopia (blue-blind)
#CD2E65
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c21fa7;
/* rgb */ color: rgb(194, 31, 167);
/* oklch */ color: oklch(56.5% 0.232 336.5);
Tailwind
colors: {
  custom: {
    50: '#d972c1',
    500: '#c21fa7',
    950: '#000000',
  },
}
SCSS
$custom: #c21fa7;
$custom-light: #d972c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c21fa7",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 309.939,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56521,
    "c": 0.23216,
    "h": 336.5
  },
  "luminance": 0.15239
}

Semantic roles & 50–950 ramp

primary
#C21FA7
secondary
#6DCF7E
accent
#EF5739
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C21FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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