#CA31A2#CA31A2

#CA31A2 is a mid, highly saturated pink. Relative luminance 0.174; OKLCH L 58.7% C 0.218 H 340.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#CA31A2
RGBrgb(202, 49, 162)
HSLhsl(316, 61%, 49%)
HSVhsv(316, 76%, 79%)
CMYKcmyk(0%, 75.7%, 19.8%, 20.8%)
CIE-LABlab(48.72, 68.80, -26.51)
CIE-LCHlch(48.72, 73.74, 338.93°)
OKLaboklab(58.68% 0.206 -0.0715)
OKLCHoklch(58.68% 0.218 340.9)
XYZxyz(31.9780, 17.3651, 35.8431)
Luminance0.1736 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31A2 #31CA59
analogous
#A631CA #CA31A2 #CA3156
triadic
#CA31A2 #A2CA31 #31A2CA
tetradic
#CA31A2 #CAA631 #31CA59 #3156CA
square
#CA31A2 #CAA631 #31CA59 #3156CA
split-complementary
#CA31A2 #56CA31 #31CAA6
monochromatic
#671953 #99257B #CA31A2 #D860B9 #E491CF

Accessibility & contrast

On white

4.70
#CA31A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#CA31A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA31A2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31A2#FFFFFF#000000##FFFFFF
##CA31A21.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E64A5
Deuteranopia (green-blind)
#707C9F
Tritanopia (blue-blind)
#D63566
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ca31a2;
/* rgb */ color: rgb(202, 49, 162);
/* oklch */ color: oklch(58.7% 0.218 340.9);
Tailwind
colors: {
  custom: {
    50: '#de79be',
    500: '#ca31a2',
    950: '#000000',
  },
}
SCSS
$custom: #ca31a2;
$custom-light: #de79be;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31a2",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 315.686,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58684,
    "c": 0.21804,
    "h": 340.9
  },
  "luminance": 0.17362
}

Semantic roles & 50–950 ramp

primary
#CA31A2
secondary
#88CF9A
accent
#E46E44
background
#FEF7FB
surface
#FCEEF6
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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