#CA21A9#CA21A9

#CA21A9 is a mid, highly saturated pink. Relative luminance 0.165; OKLCH L 58.0% C 0.236 H 338.1°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#CA21A9
RGBrgb(202, 33, 169)
HSLhsl(312, 72%, 46%)
HSVhsv(312, 84%, 79%)
CMYKcmyk(0%, 83.7%, 16.3%, 20.8%)
CIE-LABlab(47.64, 73.76, -32.35)
CIE-LCHlch(47.64, 80.54, 336.32°)
OKLaboklab(58.01% 0.219 -0.088)
OKLCHoklch(58.01% 0.236 338.1)
XYZxyz(32.0632, 16.5121, 39.0270)
Luminance0.1651 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21A9 #21CA42
analogous
#9621CA #CA21A9 #CA2154
triadic
#CA21A9 #A9CA21 #21A9CA
tetradic
#CA21A9 #CA9621 #21CA42 #2154CA
square
#CA21A9 #CA9621 #21CA42 #2154CA
split-complementary
#CA21A9 #54CA21 #21CA96
monochromatic
#611051 #95187D #CA21A9 #E147C3 #EA7CD4

Accessibility & contrast

On white

4.88
#CA21A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#CA21A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA21A9
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA21A9#FFFFFF#000000##FFFFFF
##CA21A91.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B61AC
Deuteranopia (green-blind)
#687AA5
Tritanopia (blue-blind)
#D62D66
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ca21a9;
/* rgb */ color: rgb(202, 33, 169);
/* oklch */ color: oklch(58.0% 0.236 338.1);
Tailwind
colors: {
  custom: {
    50: '#df74c3',
    500: '#ca21a9',
    950: '#000000',
  },
}
SCSS
$custom: #ca21a9;
$custom-light: #df74c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21a9",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 169
  },
  "hsl": {
    "h": 311.716,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.58014,
    "c": 0.23598,
    "h": 338.1
  },
  "luminance": 0.16509
}

Semantic roles & 50–950 ramp

primary
#CA21A9
secondary
#75D287
accent
#EF5D39
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA21A9

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

Preview Lab → · Contrast checker → · Palette generator →

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