#CA31A7#CA31A7

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

Color values

HEX#CA31A7
RGBrgb(202, 49, 167)
HSLhsl(314, 61%, 49%)
HSVhsv(314, 76%, 79%)
CMYKcmyk(0%, 75.7%, 17.3%, 20.8%)
CIE-LABlab(48.94, 69.47, -29.13)
CIE-LCHlch(48.94, 75.33, 337.25°)
OKLaboklab(58.92% 0.2066 -0.0789)
OKLCHoklch(58.92% 0.221 339.1)
XYZxyz(32.4313, 17.5464, 38.2305)
Luminance0.1754 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31A7 #31CA54
analogous
#A031CA #CA31A7 #CA315B
triadic
#CA31A7 #A7CA31 #31A7CA
tetradic
#CA31A7 #CAA031 #31CA54 #315BCA
square
#CA31A7 #CAA031 #31CA54 #315BCA
split-complementary
#CA31A7 #5BCA31 #31CAA0
monochromatic
#671956 #99257E #CA31A7 #D860BD #E491D1

Accessibility & contrast

On white

4.66
#CA31A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#CA31A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #CA31A7
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31A7#FFFFFF#000000##FFFFFF
##CA31A71.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65AA
Deuteranopia (green-blind)
#6E7DA4
Tritanopia (blue-blind)
#D63869
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ca31a7;
/* rgb */ color: rgb(202, 49, 167);
/* oklch */ color: oklch(58.9% 0.221 339.1);
Tailwind
colors: {
  custom: {
    50: '#de79c1',
    500: '#ca31a7',
    950: '#000000',
  },
}
SCSS
$custom: #ca31a7;
$custom-light: #de79c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31a7",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 313.725,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5892,
    "c": 0.22118,
    "h": 339.1
  },
  "luminance": 0.17543
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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