#CA21A2#CA21A2

#CA21A2 is a mid, highly saturated pink. Relative luminance 0.163; OKLCH L 57.7% C 0.232 H 340.4°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#CA21A2
RGBrgb(202, 33, 162)
HSLhsl(314, 72%, 46%)
HSVhsv(314, 84%, 79%)
CMYKcmyk(0%, 83.7%, 19.8%, 20.8%)
CIE-LABlab(47.31, 72.85, -28.70)
CIE-LCHlch(47.31, 78.30, 338.50°)
OKLaboklab(57.67% 0.2183 -0.0776)
OKLCHoklch(57.67% 0.232 340.4)
XYZxyz(31.4236, 16.2562, 35.6583)
Luminance0.1625 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA21A2 #21CA49
analogous
#9D21CA #CA21A2 #CA214D
triadic
#CA21A2 #A2CA21 #21A2CA
tetradic
#CA21A2 #CA9D21 #21CA49 #214DCA
square
#CA21A2 #CA9D21 #21CA49 #214DCA
split-complementary
#CA21A2 #4DCA21 #21CA9D
monochromatic
#61104E #951878 #CA21A2 #E147BD #EA7CD0

Accessibility & contrast

On white

4.94
#CA21A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#CA21A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA21A2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA21A2#FFFFFF#000000##FFFFFF
##CA21A21.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA5
Deuteranopia (green-blind)
#6B799E
Tritanopia (blue-blind)
#D62862
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ca21a2;
/* rgb */ color: rgb(202, 33, 162);
/* oklch */ color: oklch(57.7% 0.232 340.4);
Tailwind
colors: {
  custom: {
    50: '#df73be',
    500: '#ca21a2',
    950: '#000000',
  },
}
SCSS
$custom: #ca21a2;
$custom-light: #df73be;
$custom-dark: #000000;
JSON
{
  "hex": "#ca21a2",
  "rgb": {
    "r": 202,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 314.201,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5767,
    "c": 0.23171,
    "h": 340.4
  },
  "luminance": 0.16253
}

Semantic roles & 50–950 ramp

primary
#CA21A2
secondary
#75D28B
accent
#EF6439
background
#FEF7FB
surface
#FCEEF6
border
#D5C9D0
text
#160912
muted
#847B81

Preview Lab

Preview with #CA21A2

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

Preview Lab → · Contrast checker → · Palette generator →

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