#CA21A4#CA21A4

#CA21A4 is a mid, highly saturated pink. Relative luminance 0.163; OKLCH L 57.8% C 0.233 H 339.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#CA21A4
RGBrgb(202, 33, 164)
HSLhsl(313, 72%, 46%)
HSVhsv(313, 84%, 79%)
CMYKcmyk(0%, 83.7%, 18.8%, 20.8%)
CIE-LABlab(47.40, 73.11, -29.75)
CIE-LCHlch(47.40, 78.93, 337.86°)
OKLaboklab(57.77% 0.2185 -0.0805)
OKLCHoklch(57.77% 0.233 339.8)
XYZxyz(31.6028, 16.3279, 36.6020)
Luminance0.1633 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21A4 #21CA47
analogous
#9B21CA #CA21A4 #CA214F
triadic
#CA21A4 #A4CA21 #21A4CA
tetradic
#CA21A4 #CA9B21 #21CA47 #214FCA
square
#CA21A4 #CA9B21 #21CA47 #214FCA
split-complementary
#CA21A4 #4FCA21 #21CA9B
monochromatic
#61104F #951879 #CA21A4 #E147BE #EA7CD1

Accessibility & contrast

On white

4.92
#CA21A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#CA21A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA21A4
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA21A4#FFFFFF#000000##FFFFFF
##CA21A41.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3060A7
Deuteranopia (green-blind)
#6A7AA0
Tritanopia (blue-blind)
#D62964
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ca21a4;
/* rgb */ color: rgb(202, 33, 164);
/* oklch */ color: oklch(57.8% 0.233 339.8);
Tailwind
colors: {
  custom: {
    50: '#df74bf',
    500: '#ca21a4',
    950: '#000000',
  },
}
SCSS
$custom: #ca21a4;
$custom-light: #df74bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21a4",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 313.491,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.57767,
    "c": 0.23291,
    "h": 339.8
  },
  "luminance": 0.16325
}

Semantic roles & 50–950 ramp

primary
#CA21A4
secondary
#75D28A
accent
#EF6239
background
#FEF7FB
surface
#FCEEF7
border
#D5C9D0
text
#160912
muted
#847B81

Preview Lab

Preview with #CA21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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