#CA3171#CA3171

#CA3171 is a mid, vivid pink. Relative luminance 0.159; OKLCH L 56.8% C 0.194 H 0.5°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CA3171
RGBrgb(202, 49, 113)
HSLhsl(335, 61%, 49%)
HSVhsv(335, 76%, 79%)
CMYKcmyk(0%, 75.7%, 44.1%, 20.8%)
CIE-LABlab(46.91, 63.27, 0.35)
CIE-LCHlch(46.91, 63.27, 0.31°)
OKLaboklab(56.78% 0.1942 0.0016)
OKLCHoklch(56.78% 0.194 0.5)
XYZxyz(28.4383, 15.9492, 17.2006)
Luminance0.1595 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA3171 #31CA8A
analogous
#CA31BE #CA3171 #CA3E31
triadic
#CA3171 #71CA31 #3171CA
tetradic
#CA3171 #BECA31 #31CA8A #3E31CA
square
#CA3171 #BECA31 #31CA8A #3E31CA
split-complementary
#CA3171 #31CA3E #31BECA
monochromatic
#67193A #992555 #CA3171 #D86092 #E491B4

Accessibility & contrast

On white

5.01
#CA3171 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#CA3171 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA3171
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA3171#FFFFFF#000000##FFFFFF
##CA31711.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#545C73
Deuteranopia (green-blind)
#7D7A6D
Tritanopia (blue-blind)
#DB134D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ca3171;
/* rgb */ color: rgb(202, 49, 113);
/* oklch */ color: oklch(56.8% 0.194 0.5);
Tailwind
colors: {
  custom: {
    50: '#e07799',
    500: '#ca3171',
    950: '#000000',
  },
}
SCSS
$custom: #ca3171;
$custom-light: #e07799;
$custom-dark: #000000;
JSON
{
  "hex": "#ca3171",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 334.902,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56775,
    "c": 0.19425,
    "h": 0.5
  },
  "luminance": 0.15945
}

Semantic roles & 50–950 ramp

primary
#CA3171
secondary
#88CFB1
accent
#E4A144
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#160A0D
muted
#847C7E

Preview Lab

Preview with #CA3171

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

Preview Lab → · Contrast checker → · Palette generator →

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