#CA317B#CA317B

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

Color values

HEX#CA317B
RGBrgb(202, 49, 123)
HSLhsl(331, 61%, 49%)
HSVhsv(331, 76%, 79%)
CMYKcmyk(0%, 75.7%, 39.1%, 20.8%)
CIE-LABlab(47.22, 64.24, -5.31)
CIE-LCHlch(47.22, 64.46, 355.27°)
OKLaboklab(57.11% 0.1974 -0.0132)
OKLCHoklch(57.11% 0.198 356.2)
XYZxyz(29.0326, 16.1869, 20.3306)
Luminance0.1618 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA317B #31CA80
analogous
#CA31C8 #CA317B #CA3331
triadic
#CA317B #7BCA31 #317BCA
tetradic
#CA317B #C8CA31 #31CA80 #3331CA
square
#CA317B #C8CA31 #31CA80 #3331CA
split-complementary
#CA317B #31CA33 #31C8CA
monochromatic
#67193F #99255D #CA317B #D8609A #E491B9

Accessibility & contrast

On white

4.96
#CA317B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #CA317B
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA317B#FFFFFF#000000##FFFFFF
##CA317B1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515E7D
Deuteranopia (green-blind)
#7B7A78
Tritanopia (blue-blind)
#DA1C52
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ca317b;
/* rgb */ color: rgb(202, 49, 123);
/* oklch */ color: oklch(57.1% 0.198 356.2);
Tailwind
colors: {
  custom: {
    50: '#df78a1',
    500: '#ca317b',
    950: '#000000',
  },
}
SCSS
$custom: #ca317b;
$custom-light: #df78a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca317b",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 330.98,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57105,
    "c": 0.19782,
    "h": 356.2
  },
  "luminance": 0.16183
}

Semantic roles & 50–950 ramp

primary
#CA317B
secondary
#88CFAD
accent
#E49744
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#160A0E
muted
#847C7E

Preview Lab

Preview with #CA317B

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

Preview Lab → · Contrast checker → · Palette generator →

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