#CA21A5#CA21A5

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

Color values

HEX#CA21A5
RGBrgb(202, 33, 165)
HSLhsl(313, 72%, 46%)
HSVhsv(313, 84%, 79%)
CMYKcmyk(0%, 83.7%, 18.3%, 20.8%)
CIE-LABlab(47.45, 73.24, -30.27)
CIE-LCHlch(47.45, 79.24, 337.54°)
OKLaboklab(57.82% 0.2186 -0.082)
OKLCHoklch(57.82% 0.234 339.4)
XYZxyz(31.6935, 16.3642, 37.0795)
Luminance0.1636 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21A5 #21CA46
analogous
#9A21CA #CA21A5 #CA2150
triadic
#CA21A5 #A5CA21 #21A5CA
tetradic
#CA21A5 #CA9A21 #21CA46 #2150CA
square
#CA21A5 #CA9A21 #21CA46 #2150CA
split-complementary
#CA21A5 #50CA21 #21CA9A
monochromatic
#61104F #95187A #CA21A5 #E147BF #EA7CD2

Accessibility & contrast

On white

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

On black

4.27
#CA21A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##CA21A5#FFFFFF#000000##FFFFFF
##CA21A51.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F60A8
Deuteranopia (green-blind)
#6A7AA1
Tritanopia (blue-blind)
#D62A64
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ca21a5;
/* rgb */ color: rgb(202, 33, 165);
/* oklch */ color: oklch(57.8% 0.234 339.4);
Tailwind
colors: {
  custom: {
    50: '#df74c0',
    500: '#ca21a5',
    950: '#000000',
  },
}
SCSS
$custom: #ca21a5;
$custom-light: #df74c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21a5",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 165
  },
  "hsl": {
    "h": 313.136,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.57816,
    "c": 0.23353,
    "h": 339.4
  },
  "luminance": 0.16361
}

Semantic roles & 50–950 ramp

primary
#CA21A5
secondary
#75D289
accent
#EF6139
background
#FEF7FB
surface
#FCEEF7
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA21A5

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

Preview Lab → · Contrast checker → · Palette generator →

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