#CA21A6#CA21A6

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

Color values

HEX#CA21A6
RGBrgb(202, 33, 166)
HSLhsl(313, 72%, 46%)
HSVhsv(313, 84%, 79%)
CMYKcmyk(0%, 83.7%, 17.8%, 20.8%)
CIE-LABlab(47.50, 73.36, -30.79)
CIE-LCHlch(47.50, 79.56, 337.23°)
OKLaboklab(57.87% 0.2187 -0.0835)
OKLCHoklch(57.87% 0.234 339.1)
XYZxyz(31.7848, 16.4007, 37.5607)
Luminance0.1640 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21A6 #21CA45
analogous
#9921CA #CA21A6 #CA2151
triadic
#CA21A6 #A6CA21 #21A6CA
tetradic
#CA21A6 #CA9921 #21CA45 #2151CA
square
#CA21A6 #CA9921 #21CA45 #2151CA
split-complementary
#CA21A6 #51CA21 #21CA99
monochromatic
#611050 #95187B #CA21A6 #E147C0 #EA7CD2

Accessibility & contrast

On white

4.91
#CA21A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#CA21A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA21A6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA21A6#FFFFFF#000000##FFFFFF
##CA21A61.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E60A9
Deuteranopia (green-blind)
#6A7AA2
Tritanopia (blue-blind)
#D62B65
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ca21a6;
/* rgb */ color: rgb(202, 33, 166);
/* oklch */ color: oklch(57.9% 0.234 339.1);
Tailwind
colors: {
  custom: {
    50: '#df74c0',
    500: '#ca21a6',
    950: '#000000',
  },
}
SCSS
$custom: #ca21a6;
$custom-light: #df74c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21a6",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 166
  },
  "hsl": {
    "h": 312.781,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.57865,
    "c": 0.23413,
    "h": 339.1
  },
  "luminance": 0.16397
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA21A6

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

Preview Lab → · Contrast checker → · Palette generator →

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