#CA21AE#CA21AE

#CA21AE is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.3% C 0.239 H 336.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#CA21AE
RGBrgb(202, 33, 174)
HSLhsl(310, 72%, 46%)
HSVhsv(310, 84%, 79%)
CMYKcmyk(0%, 83.7%, 13.9%, 20.8%)
CIE-LABlab(47.88, 74.42, -34.92)
CIE-LCHlch(47.88, 82.21, 334.87°)
OKLaboklab(58.27% 0.2193 -0.0953)
OKLCHoklch(58.27% 0.239 336.5)
XYZxyz(32.5416, 16.7034, 41.5465)
Luminance0.1670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21AE #21CA3D
analogous
#9121CA #CA21AE #CA2159
triadic
#CA21AE #AECA21 #21AECA
tetradic
#CA21AE #CA9121 #21CA3D #2159CA
square
#CA21AE #CA9121 #21CA3D #2159CA
split-complementary
#CA21AE #59CA21 #21CA91
monochromatic
#611053 #951881 #CA21AE #E147C8 #EA7CD7

Accessibility & contrast

On white

4.84
#CA21AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#CA21AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA21AE
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA21AE#FFFFFF#000000##FFFFFF
##CA21AE1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2662B1
Deuteranopia (green-blind)
#667AAA
Tritanopia (blue-blind)
#D53169
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ca21ae;
/* rgb */ color: rgb(202, 33, 174);
/* oklch */ color: oklch(58.3% 0.239 336.5);
Tailwind
colors: {
  custom: {
    50: '#df74c6',
    500: '#ca21ae',
    950: '#000000',
  },
}
SCSS
$custom: #ca21ae;
$custom-light: #df74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21ae",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 309.941,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.58269,
    "c": 0.23911,
    "h": 336.5
  },
  "luminance": 0.167
}

Semantic roles & 50–950 ramp

primary
#CA21AE
secondary
#75D285
accent
#EF5739
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CA21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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