#CA21AC#CA21AC

#CA21AC is a mid, highly saturated pink. Relative luminance 0.166; OKLCH L 58.2% C 0.238 H 337.1°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#CA21AC
RGBrgb(202, 33, 172)
HSLhsl(311, 72%, 46%)
HSVhsv(311, 84%, 79%)
CMYKcmyk(0%, 83.7%, 14.9%, 20.8%)
CIE-LABlab(47.79, 74.16, -33.89)
CIE-LCHlch(47.79, 81.53, 335.44°)
OKLaboklab(58.17% 0.2192 -0.0924)
OKLCHoklch(58.17% 0.238 337.1)
XYZxyz(32.3481, 16.6260, 40.5273)
Luminance0.1662 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21AC #21CA3F
analogous
#9321CA #CA21AC #CA2157
triadic
#CA21AC #ACCA21 #21ACCA
tetradic
#CA21AC #CA9321 #21CA3F #2157CA
square
#CA21AC #CA9321 #21CA3F #2157CA
split-complementary
#CA21AC #57CA21 #21CA93
monochromatic
#611052 #95187F #CA21AC #E147C6 #EA7CD6

Accessibility & contrast

On white

4.86
#CA21AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#CA21AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA21AC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA21AC#FFFFFF#000000##FFFFFF
##CA21AC1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AF
Deuteranopia (green-blind)
#677AA8
Tritanopia (blue-blind)
#D52F68
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ca21ac;
/* rgb */ color: rgb(202, 33, 172);
/* oklch */ color: oklch(58.2% 0.238 337.1);
Tailwind
colors: {
  custom: {
    50: '#df74c5',
    500: '#ca21ac',
    950: '#000000',
  },
}
SCSS
$custom: #ca21ac;
$custom-light: #df74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21ac",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 310.651,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.58166,
    "c": 0.23786,
    "h": 337.1
  },
  "luminance": 0.16623
}

Semantic roles & 50–950 ramp

primary
#CA21AC
secondary
#75D286
accent
#EF5939
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CA21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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