#CA31A4#CA31A4

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

Color values

HEX#CA31A4
RGBrgb(202, 49, 164)
HSLhsl(315, 61%, 49%)
HSVhsv(315, 76%, 79%)
CMYKcmyk(0%, 75.7%, 18.8%, 20.8%)
CIE-LABlab(48.81, 69.07, -27.56)
CIE-LCHlch(48.81, 74.37, 338.25°)
OKLaboklab(58.78% 0.2063 -0.0744)
OKLCHoklch(58.78% 0.219 340.2)
XYZxyz(32.1572, 17.4367, 36.7868)
Luminance0.1743 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31A4 #31CA57
analogous
#A431CA #CA31A4 #CA3158
triadic
#CA31A4 #A4CA31 #31A4CA
tetradic
#CA31A4 #CAA431 #31CA57 #3158CA
square
#CA31A4 #CAA431 #31CA57 #3158CA
split-complementary
#CA31A4 #58CA31 #31CAA4
monochromatic
#671954 #99257C #CA31A4 #D860BA #E491D0

Accessibility & contrast

On white

4.68
#CA31A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#CA31A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA31A4
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31A4#FFFFFF#000000##FFFFFF
##CA31A41.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ca31a4;
/* rgb */ color: rgb(202, 49, 164);
/* oklch */ color: oklch(58.8% 0.219 340.2);
Tailwind
colors: {
  custom: {
    50: '#de79bf',
    500: '#ca31a4',
    950: '#000000',
  },
}
SCSS
$custom: #ca31a4;
$custom-light: #de79bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31a4",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 314.902,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58778,
    "c": 0.21928,
    "h": 340.2
  },
  "luminance": 0.17434
}

Semantic roles & 50–950 ramp

primary
#CA31A4
secondary
#88CF99
accent
#E46C44
background
#FEF7FB
surface
#FCEEF7
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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