#CA317D#CA317D

#CA317D is a mid, vivid pink. Relative luminance 0.162; OKLCH L 57.2% C 0.199 H 355.3°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#CA317D
RGBrgb(202, 49, 125)
HSLhsl(330, 61%, 49%)
HSVhsv(330, 76%, 79%)
CMYKcmyk(0%, 75.7%, 38.1%, 20.8%)
CIE-LABlab(47.28, 64.44, -6.44)
CIE-LCHlch(47.28, 64.76, 354.30°)
OKLaboklab(57.17% 0.198 -0.0161)
OKLCHoklch(57.17% 0.199 355.3)
XYZxyz(29.1591, 16.2375, 20.9967)
Luminance0.1623 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA317D #31CA7E
analogous
#CA31CA #CA317D #CA3231
triadic
#CA317D #7DCA31 #317DCA
tetradic
#CA317D #CACA31 #31CA7E #3231CA
square
#CA317D #CACA31 #31CA7E #3231CA
split-complementary
#CA317D #31CA32 #31CACA
monochromatic
#671940 #99255F #CA317D #D8609C #E491BA

Accessibility & contrast

On white

4.94
#CA317D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#CA317D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA317D
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA317D#FFFFFF#000000##FFFFFF
##CA317D1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505E7F
Deuteranopia (green-blind)
#7B7A7A
Tritanopia (blue-blind)
#DA1D53
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ca317d;
/* rgb */ color: rgb(202, 49, 125);
/* oklch */ color: oklch(57.2% 0.199 355.3);
Tailwind
colors: {
  custom: {
    50: '#df78a2',
    500: '#ca317d',
    950: '#000000',
  },
}
SCSS
$custom: #ca317d;
$custom-light: #df78a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca317d",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 330.196,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57174,
    "c": 0.19863,
    "h": 355.3
  },
  "luminance": 0.16234
}

Semantic roles & 50–950 ramp

primary
#CA317D
secondary
#88CFAC
accent
#E49444
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#160A0F
muted
#847C7E

Preview Lab

Preview with #CA317D

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

Preview Lab → · Contrast checker → · Palette generator →

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