#CA31A3#CA31A3

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

Color values

HEX#CA31A3
RGBrgb(202, 49, 163)
HSLhsl(315, 61%, 49%)
HSVhsv(315, 76%, 79%)
CMYKcmyk(0%, 75.7%, 19.3%, 20.8%)
CIE-LABlab(48.76, 68.94, -27.04)
CIE-LCHlch(48.76, 74.05, 338.58°)
OKLaboklab(58.73% 0.2061 -0.0729)
OKLCHoklch(58.73% 0.219 340.5)
XYZxyz(32.0673, 17.4008, 36.3131)
Luminance0.1740 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31A3 #31CA58
analogous
#A531CA #CA31A3 #CA3157
triadic
#CA31A3 #A3CA31 #31A3CA
tetradic
#CA31A3 #CAA531 #31CA58 #3157CA
square
#CA31A3 #CAA531 #31CA58 #3157CA
split-complementary
#CA31A3 #57CA31 #31CAA5
monochromatic
#671954 #99257B #CA31A3 #D860BA #E491CF

Accessibility & contrast

On white

4.69
#CA31A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#CA31A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA31A3
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31A3#FFFFFF#000000##FFFFFF
##CA31A31.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D64A6
Deuteranopia (green-blind)
#6F7DA0
Tritanopia (blue-blind)
#D63667
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ca31a3;
/* rgb */ color: rgb(202, 49, 163);
/* oklch */ color: oklch(58.7% 0.219 340.5);
Tailwind
colors: {
  custom: {
    50: '#de79be',
    500: '#ca31a3',
    950: '#000000',
  },
}
SCSS
$custom: #ca31a3;
$custom-light: #de79be;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31a3",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 315.294,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58731,
    "c": 0.21866,
    "h": 340.5
  },
  "luminance": 0.17398
}

Semantic roles & 50–950 ramp

primary
#CA31A3
secondary
#88CF9A
accent
#E46D44
background
#FEF7FB
surface
#FCEEF7
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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