#CA317F#CA317F

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

Color values

HEX#CA317F
RGBrgb(202, 49, 127)
HSLhsl(329, 61%, 49%)
HSVhsv(329, 76%, 79%)
CMYKcmyk(0%, 75.7%, 37.1%, 20.8%)
CIE-LABlab(47.35, 64.65, -7.55)
CIE-LCHlch(47.35, 65.09, 353.34°)
OKLaboklab(57.25% 0.1985 -0.0191)
OKLCHoklch(57.25% 0.199 354.5)
XYZxyz(29.2881, 16.2891, 21.6764)
Luminance0.1628 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA317F #31CA7C
analogous
#C931CA #CA317F #CA3132
triadic
#CA317F #7FCA31 #317FCA
tetradic
#CA317F #CAC931 #31CA7C #3132CA
square
#CA317F #CAC931 #31CA7C #3132CA
split-complementary
#CA317F #32CA31 #31CAC9
monochromatic
#671941 #992560 #CA317F #D8609D #E491BC

Accessibility & contrast

On white

4.93
#CA317F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#CA317F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA317F
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA317F#FFFFFF#000000##FFFFFF
##CA317F1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5E81
Deuteranopia (green-blind)
#7A7A7C
Tritanopia (blue-blind)
#DA1F54
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ca317f;
/* rgb */ color: rgb(202, 49, 127);
/* oklch */ color: oklch(57.2% 0.199 354.5);
Tailwind
colors: {
  custom: {
    50: '#df78a4',
    500: '#ca317f',
    950: '#000000',
  },
}
SCSS
$custom: #ca317f;
$custom-light: #df78a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca317f",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 329.412,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57245,
    "c": 0.19946,
    "h": 354.5
  },
  "luminance": 0.16285
}

Semantic roles & 50–950 ramp

primary
#CA317F
secondary
#88CFAB
accent
#E49244
background
#FEF7FA
surface
#FDEEF4
border
#D5C9CE
text
#160A0F
muted
#847C7F

Preview Lab

Preview with #CA317F

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

Preview Lab → · Contrast checker → · Palette generator →

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