#CA31AB#CA31AB

#CA31AB is a mid, highly saturated pink. Relative luminance 0.177; OKLCH L 59.1% C 0.224 H 337.7°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#CA31AB
RGBrgb(202, 49, 171)
HSLhsl(312, 61%, 49%)
HSVhsv(312, 76%, 79%)
CMYKcmyk(0%, 75.7%, 15.3%, 20.8%)
CIE-LABlab(49.13, 70.02, -31.20)
CIE-LCHlch(49.13, 76.66, 335.98°)
OKLaboklab(59.11% 0.2071 -0.0848)
OKLCHoklch(59.11% 0.224 337.7)
XYZxyz(32.8068, 17.6966, 40.2082)
Luminance0.1769 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31AB #31CA50
analogous
#9D31CA #CA31AB #CA315F
triadic
#CA31AB #ABCA31 #31ABCA
tetradic
#CA31AB #CA9D31 #31CA50 #315FCA
square
#CA31AB #CA9D31 #31CA50 #315FCA
split-complementary
#CA31AB #5FCA31 #31CA9D
monochromatic
#671958 #992581 #CA31AB #D860C0 #E491D3

Accessibility & contrast

On white

4.63
#CA31AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#CA31AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #CA31AB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31AB#FFFFFF#000000##FFFFFF
##CA31AB1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3766AE
Deuteranopia (green-blind)
#6C7DA7
Tritanopia (blue-blind)
#D53A6B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ca31ab;
/* rgb */ color: rgb(202, 49, 171);
/* oklch */ color: oklch(59.1% 0.224 337.7);
Tailwind
colors: {
  custom: {
    50: '#de79c4',
    500: '#ca31ab',
    950: '#000000',
  },
}
SCSS
$custom: #ca31ab;
$custom-light: #de79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31ab",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 312.157,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.59113,
    "c": 0.22377,
    "h": 337.7
  },
  "luminance": 0.17693
}

Semantic roles & 50–950 ramp

primary
#CA31AB
secondary
#88CF96
accent
#E46444
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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