#CA21AB#CA21AB

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

Color values

HEX#CA21AB
RGBrgb(202, 33, 171)
HSLhsl(311, 72%, 46%)
HSVhsv(311, 84%, 79%)
CMYKcmyk(0%, 83.7%, 15.3%, 20.8%)
CIE-LABlab(47.74, 74.02, -33.38)
CIE-LCHlch(47.74, 81.20, 335.73°)
OKLaboklab(58.12% 0.2191 -0.0909)
OKLCHoklch(58.12% 0.237 337.5)
XYZxyz(32.2524, 16.5878, 40.0234)
Luminance0.1658 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21AB #21CA40
analogous
#9421CA #CA21AB #CA2156
triadic
#CA21AB #ABCA21 #21ABCA
tetradic
#CA21AB #CA9421 #21CA40 #2156CA
square
#CA21AB #CA9421 #21CA40 #2156CA
split-complementary
#CA21AB #56CA21 #21CA94
monochromatic
#611052 #95187E #CA21AB #E147C5 #EA7CD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CA21AB#FFFFFF#000000##FFFFFF
##CA21AB1.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)
#2961AE
Deuteranopia (green-blind)
#687AA7
Tritanopia (blue-blind)
#D52F68
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ca21ab;
/* rgb */ color: rgb(202, 33, 171);
/* oklch */ color: oklch(58.1% 0.237 337.5);
Tailwind
colors: {
  custom: {
    50: '#df74c4',
    500: '#ca21ab',
    950: '#000000',
  },
}
SCSS
$custom: #ca21ab;
$custom-light: #df74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21ab",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 171
  },
  "hsl": {
    "h": 311.006,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.58115,
    "c": 0.23722,
    "h": 337.5
  },
  "luminance": 0.16585
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA21AB

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

Preview Lab → · Contrast checker → · Palette generator →

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