#CA31A9#CA31A9

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

Color values

HEX#CA31A9
RGBrgb(202, 49, 169)
HSLhsl(313, 61%, 49%)
HSVhsv(313, 76%, 79%)
CMYKcmyk(0%, 75.7%, 16.3%, 20.8%)
CIE-LABlab(49.03, 69.74, -30.17)
CIE-LCHlch(49.03, 75.99, 336.61°)
OKLaboklab(59.02% 0.2069 -0.0818)
OKLCHoklch(59.02% 0.222 338.4)
XYZxyz(32.6176, 17.6209, 39.2118)
Luminance0.1762 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31A9 #31CA52
analogous
#9F31CA #CA31A9 #CA315D
triadic
#CA31A9 #A9CA31 #31A9CA
tetradic
#CA31A9 #CA9F31 #31CA52 #315DCA
square
#CA31A9 #CA9F31 #31CA52 #315DCA
split-complementary
#CA31A9 #5DCA31 #31CA9F
monochromatic
#671957 #992580 #CA31A9 #D860BE #E491D2

Accessibility & contrast

On white

4.64
#CA31A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #CA31A9
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31A9#FFFFFF#000000##FFFFFF
##CA31A91.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3965AC
Deuteranopia (green-blind)
#6D7DA5
Tritanopia (blue-blind)
#D5396A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ca31a9;
/* rgb */ color: rgb(202, 49, 169);
/* oklch */ color: oklch(59.0% 0.222 338.4);
Tailwind
colors: {
  custom: {
    50: '#de79c3',
    500: '#ca31a9',
    950: '#000000',
  },
}
SCSS
$custom: #ca31a9;
$custom-light: #de79c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31a9",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 312.941,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.59016,
    "c": 0.22247,
    "h": 338.4
  },
  "luminance": 0.17618
}

Semantic roles & 50–950 ramp

primary
#CA31A9
secondary
#88CF97
accent
#E46644
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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