#C21FAF#C21FAF

#C21FAF is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.9% C 0.237 H 333.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#C21FAF
RGBrgb(194, 31, 175)
HSLhsl(307, 72%, 44%)
HSVhsv(307, 84%, 76%)
CMYKcmyk(0%, 84%, 9.8%, 23.9%)
CIE-LABlab(46.37, 73.37, -37.98)
CIE-LCHlch(46.37, 82.62, 332.63°)
OKLaboklab(56.95% 0.2132 -0.1043)
OKLCHoklch(56.95% 0.237 333.9)
XYZxyz(30.4763, 15.5472, 41.9450)
Luminance0.1554 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21FAF #1FC232
analogous
#841FC2 #C21FAF #C21F5E
triadic
#C21FAF #AFC21F #1FAFC2
tetradic
#C21FAF #C2841F #1FC232 #1F5EC2
square
#C21FAF #C2841F #1FC232 #1F5EC2
split-complementary
#C21FAF #5EC21F #1FC284
monochromatic
#580E50 #8D177F #C21FAF #E03ECD #E973DB

Accessibility & contrast

On white

5.11
#C21FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#C21FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21FAF
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21FAF#FFFFFF#000000##FFFFFF
##C21FAF1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175FB3
Deuteranopia (green-blind)
#5E76AB
Tritanopia (blue-blind)
#CB3469
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #c21faf;
/* rgb */ color: rgb(194, 31, 175);
/* oklch */ color: oklch(56.9% 0.237 333.9);
Tailwind
colors: {
  custom: {
    50: '#d972c7',
    500: '#c21faf',
    950: '#000000',
  },
}
SCSS
$custom: #c21faf;
$custom-light: #d972c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c21faf",
  "rgb": {
    "r": 194,
    "g": 31,
    "b": 175
  },
  "hsl": {
    "h": 306.994,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56947,
    "c": 0.23735,
    "h": 333.9
  },
  "luminance": 0.15544
}

Semantic roles & 50–950 ramp

primary
#C21FAF
secondary
#6DCF79
accent
#EF4E39
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #C21FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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