#CA317C#CA317C

#CA317C is a mid, vivid pink. Relative luminance 0.162; OKLCH L 57.1% C 0.198 H 355.8°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#CA317C
RGBrgb(202, 49, 124)
HSLhsl(331, 61%, 49%)
HSVhsv(331, 76%, 79%)
CMYKcmyk(0%, 75.7%, 38.6%, 20.8%)
CIE-LABlab(47.25, 64.34, -5.88)
CIE-LCHlch(47.25, 64.61, 354.78°)
OKLaboklab(57.14% 0.1977 -0.0147)
OKLCHoklch(57.14% 0.198 355.8)
XYZxyz(29.0955, 16.2121, 20.6619)
Luminance0.1621 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA317C #31CA7F
analogous
#CA31C9 #CA317C #CA3231
triadic
#CA317C #7CCA31 #317CCA
tetradic
#CA317C #C9CA31 #31CA7F #3231CA
square
#CA317C #C9CA31 #31CA7F #3231CA
split-complementary
#CA317C #31CA32 #31C9CA
monochromatic
#671940 #99255E #CA317C #D8609B #E491BA

Accessibility & contrast

On white

4.95
#CA317C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#CA317C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA317C
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA317C#FFFFFF#000000##FFFFFF
##CA317C1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505E7E
Deuteranopia (green-blind)
#7B7A79
Tritanopia (blue-blind)
#DA1D52
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ca317c;
/* rgb */ color: rgb(202, 49, 124);
/* oklch */ color: oklch(57.1% 0.198 355.8);
Tailwind
colors: {
  custom: {
    50: '#df78a1',
    500: '#ca317c',
    950: '#000000',
  },
}
SCSS
$custom: #ca317c;
$custom-light: #df78a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca317c",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 330.588,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57139,
    "c": 0.19821,
    "h": 355.8
  },
  "luminance": 0.16208
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA317C

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

Preview Lab → · Contrast checker → · Palette generator →

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