#CA21A8#CA21A8

#CA21A8 is a mid, highly saturated pink. Relative luminance 0.165; OKLCH L 58.0% C 0.235 H 338.4°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#CA21A8
RGBrgb(202, 33, 168)
HSLhsl(312, 72%, 46%)
HSVhsv(312, 84%, 79%)
CMYKcmyk(0%, 83.7%, 16.8%, 20.8%)
CIE-LABlab(47.59, 73.63, -31.83)
CIE-LCHlch(47.59, 80.21, 336.62°)
OKLaboklab(57.96% 0.2189 -0.0865)
OKLCHoklch(57.96% 0.235 338.4)
XYZxyz(31.9697, 16.4747, 38.5345)
Luminance0.1647 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21A8 #21CA43
analogous
#9721CA #CA21A8 #CA2153
triadic
#CA21A8 #A8CA21 #21A8CA
tetradic
#CA21A8 #CA9721 #21CA43 #2153CA
square
#CA21A8 #CA9721 #21CA43 #2153CA
split-complementary
#CA21A8 #53CA21 #21CA97
monochromatic
#611050 #95187C #CA21A8 #E147C2 #EA7CD3

Accessibility & contrast

On white

4.89
#CA21A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#CA21A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA21A8
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA21A8#FFFFFF#000000##FFFFFF
##CA21A81.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D61AB
Deuteranopia (green-blind)
#697AA4
Tritanopia (blue-blind)
#D62C66
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ca21a8;
/* rgb */ color: rgb(202, 33, 168);
/* oklch */ color: oklch(58.0% 0.235 338.4);
Tailwind
colors: {
  custom: {
    50: '#df74c2',
    500: '#ca21a8',
    950: '#000000',
  },
}
SCSS
$custom: #ca21a8;
$custom-light: #df74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21a8",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 312.071,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.57964,
    "c": 0.23536,
    "h": 338.4
  },
  "luminance": 0.16471
}

Semantic roles & 50–950 ramp

primary
#CA21A8
secondary
#75D288
accent
#EF5E39
background
#FEF7FB
surface
#FCEEF7
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA21A8

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

Preview Lab → · Contrast checker → · Palette generator →

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