#CA31A6#CA31A6

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

Color values

HEX#CA31A6
RGBrgb(202, 49, 166)
HSLhsl(314, 61%, 49%)
HSVhsv(314, 76%, 79%)
CMYKcmyk(0%, 75.7%, 17.8%, 20.8%)
CIE-LABlab(48.90, 69.34, -28.61)
CIE-LCHlch(48.90, 75.01, 337.58°)
OKLaboklab(58.87% 0.2065 -0.0774)
OKLCHoklch(58.87% 0.221 339.5)
XYZxyz(32.3392, 17.5096, 37.7455)
Luminance0.1751 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31A6 #31CA55
analogous
#A231CA #CA31A6 #CA3159
triadic
#CA31A6 #A6CA31 #31A6CA
tetradic
#CA31A6 #CAA231 #31CA55 #3159CA
square
#CA31A6 #CAA231 #31CA55 #3159CA
split-complementary
#CA31A6 #59CA31 #31CAA2
monochromatic
#671955 #99257E #CA31A6 #D860BC #E491D1

Accessibility & contrast

On white

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

On black

4.50
#CA31A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##CA31A6#FFFFFF#000000##FFFFFF
##CA31A61.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65A9
Deuteranopia (green-blind)
#6E7DA3
Tritanopia (blue-blind)
#D63769
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ca31a6;
/* rgb */ color: rgb(202, 49, 166);
/* oklch */ color: oklch(58.9% 0.221 339.5);
Tailwind
colors: {
  custom: {
    50: '#de79c0',
    500: '#ca31a6',
    950: '#000000',
  },
}
SCSS
$custom: #ca31a6;
$custom-light: #de79c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31a6",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 314.118,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58872,
    "c": 0.22055,
    "h": 339.5
  },
  "luminance": 0.17506
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA31A6

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

Preview Lab → · Contrast checker → · Palette generator →

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