#C21EA2#C21EA2

#C21EA2 is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 56.2% C 0.230 H 338.2°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#C21EA2
RGBrgb(194, 30, 162)
HSLhsl(312, 73%, 44%)
HSVhsv(312, 85%, 76%)
CMYKcmyk(0%, 84.5%, 16.5%, 23.9%)
CIE-LABlab(45.65, 71.79, -31.41)
CIE-LCHlch(45.65, 78.36, 336.37°)
OKLaboklab(56.21% 0.2132 -0.0854)
OKLCHoklch(56.21% 0.23 338.2)
XYZxyz(29.2347, 15.0095, 35.5329)
Luminance0.1501 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21EA2 #1EC23E
analogous
#901EC2 #C21EA2 #C21E50
triadic
#C21EA2 #A2C21E #1EA2C2
tetradic
#C21EA2 #C2901E #1EC23E #1E50C2
square
#C21EA2 #C2901E #1EC23E #1E50C2
split-complementary
#C21EA2 #50C21E #1EC290
monochromatic
#580E49 #8D1676 #C21EA2 #E13CC1 #E971D2

Accessibility & contrast

On white

5.25
#C21EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#C21EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21EA2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21EA2#FFFFFF#000000##FFFFFF
##C21EA21.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295CA5
Deuteranopia (green-blind)
#64759E
Tritanopia (blue-blind)
#CD2A62
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c21ea2;
/* rgb */ color: rgb(194, 30, 162);
/* oklch */ color: oklch(56.2% 0.230 338.2);
Tailwind
colors: {
  custom: {
    50: '#d971be',
    500: '#c21ea2',
    950: '#000000',
  },
}
SCSS
$custom: #c21ea2;
$custom-light: #d971be;
$custom-dark: #000000;
JSON
{
  "hex": "#c21ea2",
  "rgb": {
    "r": 194,
    "g": 30,
    "b": 162
  },
  "hsl": {
    "h": 311.707,
    "s": 73.214,
    "l": 43.922
  },
  "oklch": {
    "l": 0.56214,
    "c": 0.22969,
    "h": 338.2
  },
  "luminance": 0.15007
}

Semantic roles & 50–950 ramp

primary
#C21EA2
secondary
#6CD080
accent
#F05C38
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C21EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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