#CA31A5#CA31A5

#CA31A5 is a mid, highly saturated pink. Relative luminance 0.175; OKLCH L 58.8% C 0.220 H 339.8°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#CA31A5
RGBrgb(202, 49, 165)
HSLhsl(315, 61%, 49%)
HSVhsv(315, 76%, 79%)
CMYKcmyk(0%, 75.7%, 18.3%, 20.8%)
CIE-LABlab(48.85, 69.20, -28.09)
CIE-LCHlch(48.85, 74.69, 337.91°)
OKLaboklab(58.83% 0.2064 -0.0759)
OKLCHoklch(58.83% 0.22 339.8)
XYZxyz(32.2479, 17.4730, 37.2643)
Luminance0.1747 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31A5 #31CA56
analogous
#A331CA #CA31A5 #CA3159
triadic
#CA31A5 #A5CA31 #31A5CA
tetradic
#CA31A5 #CAA331 #31CA56 #3159CA
square
#CA31A5 #CAA331 #31CA56 #3159CA
split-complementary
#CA31A5 #59CA31 #31CAA3
monochromatic
#671955 #99257D #CA31A5 #D860BB #E491D0

Accessibility & contrast

On white

4.67
#CA31A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #CA31A5
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31A5#FFFFFF#000000##FFFFFF
##CA31A51.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C65A8
Deuteranopia (green-blind)
#6F7DA2
Tritanopia (blue-blind)
#D63768
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ca31a5;
/* rgb */ color: rgb(202, 49, 165);
/* oklch */ color: oklch(58.8% 0.220 339.8);
Tailwind
colors: {
  custom: {
    50: '#de79c0',
    500: '#ca31a5',
    950: '#000000',
  },
}
SCSS
$custom: #ca31a5;
$custom-light: #de79c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31a5",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 314.51,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58825,
    "c": 0.21991,
    "h": 339.8
  },
  "luminance": 0.1747
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA31A5

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

Preview Lab → · Contrast checker → · Palette generator →

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