#CA21B0#CA21B0

#CA21B0 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.4% C 0.240 H 335.9°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#CA21B0
RGBrgb(202, 33, 176)
HSLhsl(309, 72%, 46%)
HSVhsv(309, 84%, 79%)
CMYKcmyk(0%, 83.7%, 12.9%, 20.8%)
CIE-LABlab(47.98, 74.70, -35.94)
CIE-LCHlch(47.98, 82.89, 334.31°)
OKLaboklab(58.37% 0.2194 -0.0983)
OKLCHoklch(58.37% 0.24 335.9)
XYZxyz(32.7380, 16.7820, 42.5810)
Luminance0.1678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21B0 #21CA3B
analogous
#8F21CA #CA21B0 #CA215B
triadic
#CA21B0 #B0CA21 #21B0CA
tetradic
#CA21B0 #CA8F21 #21CA3B #215BCA
square
#CA21B0 #CA8F21 #21CA3B #215BCA
split-complementary
#CA21B0 #5BCA21 #21CA8F
monochromatic
#611054 #951882 #CA21B0 #E147C9 #EA7CD9

Accessibility & contrast

On white

4.82
#CA21B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#CA21B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA21B0
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA21B0#FFFFFF#000000##FFFFFF
##CA21B01.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2362B4
Deuteranopia (green-blind)
#657AAC
Tritanopia (blue-blind)
#D5326A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ca21b0;
/* rgb */ color: rgb(202, 33, 176);
/* oklch */ color: oklch(58.4% 0.240 335.9);
Tailwind
colors: {
  custom: {
    50: '#df74c8',
    500: '#ca21b0',
    950: '#000000',
  },
}
SCSS
$custom: #ca21b0;
$custom-light: #df74c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21b0",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 176
  },
  "hsl": {
    "h": 309.231,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.58373,
    "c": 0.24039,
    "h": 335.9
  },
  "luminance": 0.16779
}

Semantic roles & 50–950 ramp

primary
#CA21B0
secondary
#75D283
accent
#EF5539
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CA21B0

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

Preview Lab → · Contrast checker → · Palette generator →

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