#CA21A7#CA21A7

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

Color values

HEX#CA21A7
RGBrgb(202, 33, 167)
HSLhsl(312, 72%, 46%)
HSVhsv(312, 84%, 79%)
CMYKcmyk(0%, 83.7%, 17.3%, 20.8%)
CIE-LABlab(47.54, 73.49, -31.31)
CIE-LCHlch(47.54, 79.89, 336.93°)
OKLaboklab(57.92% 0.2188 -0.085)
OKLCHoklch(57.92% 0.235 338.8)
XYZxyz(31.8769, 16.4376, 38.0457)
Luminance0.1643 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21A7 #21CA44
analogous
#9821CA #CA21A7 #CA2152
triadic
#CA21A7 #A7CA21 #21A7CA
tetradic
#CA21A7 #CA9821 #21CA44 #2152CA
square
#CA21A7 #CA9821 #21CA44 #2152CA
split-complementary
#CA21A7 #52CA21 #21CA98
monochromatic
#611050 #95187C #CA21A7 #E147C1 #EA7CD3

Accessibility & contrast

On white

4.90
#CA21A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #CA21A7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA21A7#FFFFFF#000000##FFFFFF
##CA21A71.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E60AA
Deuteranopia (green-blind)
#697AA3
Tritanopia (blue-blind)
#D62C65
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ca21a7;
/* rgb */ color: rgb(202, 33, 167);
/* oklch */ color: oklch(57.9% 0.235 338.8);
Tailwind
colors: {
  custom: {
    50: '#df74c1',
    500: '#ca21a7',
    950: '#000000',
  },
}
SCSS
$custom: #ca21a7;
$custom-light: #df74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21a7",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 167
  },
  "hsl": {
    "h": 312.426,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.57915,
    "c": 0.23474,
    "h": 338.8
  },
  "luminance": 0.16434
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA21A7

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

Preview Lab → · Contrast checker → · Palette generator →

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