#CA21B2#CA21B2

#CA21B2 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.5% C 0.242 H 335.2°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#CA21B2
RGBrgb(202, 33, 178)
HSLhsl(309, 72%, 46%)
HSVhsv(309, 84%, 79%)
CMYKcmyk(0%, 83.7%, 11.9%, 20.8%)
CIE-LABlab(48.09, 74.97, -36.96)
CIE-LCHlch(48.09, 83.58, 333.76°)
OKLaboklab(58.48% 0.2195 -0.1012)
OKLCHoklch(58.48% 0.242 335.2)
XYZxyz(32.9374, 16.8617, 43.6308)
Luminance0.1686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21B2 #21CA39
analogous
#8D21CA #CA21B2 #CA215D
triadic
#CA21B2 #B2CA21 #21B2CA
tetradic
#CA21B2 #CA8D21 #21CA39 #215DCA
square
#CA21B2 #CA8D21 #21CA39 #215DCA
split-complementary
#CA21B2 #5DCA21 #21CA8D
monochromatic
#611055 #951884 #CA21B2 #E147CB #EA7CDA

Accessibility & contrast

On white

4.80
#CA21B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#CA21B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA21B2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA21B2#FFFFFF#000000##FFFFFF
##CA21B21.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2063B6
Deuteranopia (green-blind)
#647BAE
Tritanopia (blue-blind)
#D4336C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ca21b2;
/* rgb */ color: rgb(202, 33, 178);
/* oklch */ color: oklch(58.5% 0.242 335.2);
Tailwind
colors: {
  custom: {
    50: '#df74c9',
    500: '#ca21b2',
    950: '#000000',
  },
}
SCSS
$custom: #ca21b2;
$custom-light: #df74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21b2",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 308.521,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.58478,
    "c": 0.24167,
    "h": 335.2
  },
  "luminance": 0.16859
}

Semantic roles & 50–950 ramp

primary
#CA21B2
secondary
#75D282
accent
#EF5339
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CA21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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