#C21E9F#C21E9F

#C21E9F is a mid, highly saturated pink. Relative luminance 0.149; OKLCH L 56.1% C 0.228 H 339.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#C21E9F
RGBrgb(194, 30, 159)
HSLhsl(313, 73%, 44%)
HSVhsv(313, 85%, 76%)
CMYKcmyk(0%, 84.5%, 18%, 23.9%)
CIE-LABlab(45.50, 71.40, -29.84)
CIE-LCHlch(45.50, 77.38, 337.32°)
OKLaboklab(56.06% 0.213 -0.0809)
OKLCHoklch(56.06% 0.228 339.2)
XYZxyz(28.9713, 14.9041, 34.1452)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C21E9F #1EC241
analogous
#931EC2 #C21E9F #C21E4D
triadic
#C21E9F #9FC21E #1E9FC2
tetradic
#C21E9F #C2931E #1EC241 #1E4DC2
square
#C21E9F #C2931E #1EC241 #1E4DC2
split-complementary
#C21E9F #4DC21E #1EC293
monochromatic
#580E48 #8D1674 #C21E9F #E13CBE #E971D0

Accessibility & contrast

On white

5.28
#C21E9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#C21E9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C21E9F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C21E9F#FFFFFF#000000##FFFFFF
##C21E9F1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5CA2
Deuteranopia (green-blind)
#65759B
Tritanopia (blue-blind)
#CE2860
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c21e9f;
/* rgb */ color: rgb(194, 30, 159);
/* oklch */ color: oklch(56.1% 0.228 339.2);
Tailwind
colors: {
  custom: {
    50: '#d971bb',
    500: '#c21e9f',
    950: '#000000',
  },
}
SCSS
$custom: #c21e9f;
$custom-light: #d971bb;
$custom-dark: #000000;
JSON
{
  "hex": "#c21e9f",
  "rgb": {
    "r": 194,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 312.805,
    "s": 73.214,
    "l": 43.922
  },
  "oklch": {
    "l": 0.56064,
    "c": 0.22784,
    "h": 339.2
  },
  "luminance": 0.14901
}

Semantic roles & 50–950 ramp

primary
#C21E9F
secondary
#6CD081
accent
#F05F38
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C21E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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