#CA31A8#CA31A8

#CA31A8 is a mid, highly saturated pink. Relative luminance 0.176; OKLCH L 59.0% C 0.222 H 338.8°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#CA31A8
RGBrgb(202, 49, 168)
HSLhsl(313, 61%, 49%)
HSVhsv(313, 76%, 79%)
CMYKcmyk(0%, 75.7%, 16.8%, 20.8%)
CIE-LABlab(48.99, 69.61, -29.65)
CIE-LCHlch(48.99, 75.66, 336.93°)
OKLaboklab(58.97% 0.2068 -0.0804)
OKLCHoklch(58.97% 0.222 338.8)
XYZxyz(32.5241, 17.5835, 38.7193)
Luminance0.1758 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31A8 #31CA53
analogous
#A031CA #CA31A8 #CA315C
triadic
#CA31A8 #A8CA31 #31A8CA
tetradic
#CA31A8 #CAA031 #31CA53 #315CCA
square
#CA31A8 #CAA031 #31CA53 #315CCA
split-complementary
#CA31A8 #5CCA31 #31CAA0
monochromatic
#671956 #99257F #CA31A8 #D860BE #E491D2

Accessibility & contrast

On white

4.65
#CA31A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#CA31A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #CA31A8
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31A8#FFFFFF#000000##FFFFFF
##CA31A81.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AB
Deuteranopia (green-blind)
#6D7DA4
Tritanopia (blue-blind)
#D6386A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ca31a8;
/* rgb */ color: rgb(202, 49, 168);
/* oklch */ color: oklch(59.0% 0.222 338.8);
Tailwind
colors: {
  custom: {
    50: '#de79c2',
    500: '#ca31a8',
    950: '#000000',
  },
}
SCSS
$custom: #ca31a8;
$custom-light: #de79c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31a8",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 313.333,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58968,
    "c": 0.22182,
    "h": 338.8
  },
  "luminance": 0.1758
}

Semantic roles & 50–950 ramp

primary
#CA31A8
secondary
#88CF98
accent
#E46744
background
#FEF7FB
surface
#FCEEF7
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA31A8

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

Preview Lab → · Contrast checker → · Palette generator →

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