#CA31A1#CA31A1

#CA31A1 is a mid, highly saturated pink. Relative luminance 0.173; OKLCH L 58.6% C 0.217 H 341.2°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#CA31A1
RGBrgb(202, 49, 161)
HSLhsl(316, 61%, 49%)
HSVhsv(316, 76%, 79%)
CMYKcmyk(0%, 75.7%, 20.3%, 20.8%)
CIE-LABlab(48.67, 68.67, -25.99)
CIE-LCHlch(48.67, 73.43, 339.27°)
OKLaboklab(58.64% 0.2059 -0.07)
OKLCHoklch(58.64% 0.217 341.2)
XYZxyz(31.8895, 17.3297, 35.3768)
Luminance0.1733 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31A1 #31CA5A
analogous
#A631CA #CA31A1 #CA3155
triadic
#CA31A1 #A1CA31 #31A1CA
tetradic
#CA31A1 #CAA631 #31CA5A #3155CA
square
#CA31A1 #CAA631 #31CA5A #3155CA
split-complementary
#CA31A1 #55CA31 #31CAA6
monochromatic
#671952 #99257A #CA31A1 #D860B8 #E491CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CA31A1#FFFFFF#000000##FFFFFF
##CA31A11.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)
#3F64A4
Deuteranopia (green-blind)
#707C9E
Tritanopia (blue-blind)
#D63466
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ca31a1;
/* rgb */ color: rgb(202, 49, 161);
/* oklch */ color: oklch(58.6% 0.217 341.2);
Tailwind
colors: {
  custom: {
    50: '#de79bd',
    500: '#ca31a1',
    950: '#000000',
  },
}
SCSS
$custom: #ca31a1;
$custom-light: #de79bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31a1",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 316.078,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58638,
    "c": 0.21742,
    "h": 341.2
  },
  "luminance": 0.17326
}

Semantic roles & 50–950 ramp

primary
#CA31A1
secondary
#88CF9B
accent
#E46F44
background
#FEF7FB
surface
#FCEEF6
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA31A1

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

Preview Lab → · Contrast checker → · Palette generator →

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