#CA21AF#CA21AF

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

Color values

HEX#CA21AF
RGBrgb(202, 33, 175)
HSLhsl(310, 72%, 46%)
HSVhsv(310, 84%, 79%)
CMYKcmyk(0%, 83.7%, 13.4%, 20.8%)
CIE-LABlab(47.93, 74.56, -35.43)
CIE-LCHlch(47.93, 82.55, 334.58°)
OKLaboklab(58.32% 0.2193 -0.0968)
OKLCHoklch(58.32% 0.24 336.2)
XYZxyz(32.6395, 16.7426, 42.0618)
Luminance0.1674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21AF #21CA3C
analogous
#9021CA #CA21AF #CA215A
triadic
#CA21AF #AFCA21 #21AFCA
tetradic
#CA21AF #CA9021 #21CA3C #215ACA
square
#CA21AF #CA9021 #21CA3C #215ACA
split-complementary
#CA21AF #5ACA21 #21CA90
monochromatic
#611054 #951881 #CA21AF #E147C8 #EA7CD8

Accessibility & contrast

On white

4.83
#CA21AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#CA21AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA21AF
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA21AF#FFFFFF#000000##FFFFFF
##CA21AF1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2562B2
Deuteranopia (green-blind)
#667AAB
Tritanopia (blue-blind)
#D5316A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ca21af;
/* rgb */ color: rgb(202, 33, 175);
/* oklch */ color: oklch(58.3% 0.240 336.2);
Tailwind
colors: {
  custom: {
    50: '#df74c7',
    500: '#ca21af',
    950: '#000000',
  },
}
SCSS
$custom: #ca21af;
$custom-light: #df74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21af",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 309.586,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.58321,
    "c": 0.23975,
    "h": 336.2
  },
  "luminance": 0.16739
}

Semantic roles & 50–950 ramp

primary
#CA21AF
secondary
#75D284
accent
#EF5639
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CA21AF

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

Preview Lab → · Contrast checker → · Palette generator →

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