#C5317B#C5317B

#C5317B is a mid, vivid pink. Relative luminance 0.155; OKLCH L 56.3% C 0.194 H 355.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#C5317B
RGBrgb(197, 49, 123)
HSLhsl(330, 60%, 48%)
HSVhsv(330, 75%, 77%)
CMYKcmyk(0%, 75.1%, 37.6%, 22.7%)
CIE-LABlab(46.31, 62.92, -6.76)
CIE-LCHlch(46.31, 63.28, 353.87°)
OKLaboklab(56.28% 0.1932 -0.017)
OKLCHoklch(56.28% 0.194 355)
XYZxyz(27.7013, 15.5004, 20.2682)
Luminance0.1550 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5317B #31C57B
analogous
#C531C5 #C5317B #C53131
triadic
#C5317B #7BC531 #317BC5
tetradic
#C5317B #C5C531 #31C57B #3131C5
square
#C5317B #C5C531 #31C57B #3131C5
split-complementary
#C5317B #31C531 #31C5C5
monochromatic
#63193E #94255C #C5317B #D75D9A #E38EB8

Accessibility & contrast

On white

5.12
#C5317B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#C5317B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C5317B
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5317B#FFFFFF#000000##FFFFFF
##C5317B1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5C7D
Deuteranopia (green-blind)
#787878
Tritanopia (blue-blind)
#D51F52
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #c5317b;
/* rgb */ color: rgb(197, 49, 123);
/* oklch */ color: oklch(56.3% 0.194 355.0);
Tailwind
colors: {
  custom: {
    50: '#dc77a1',
    500: '#c5317b',
    950: '#000000',
  },
}
SCSS
$custom: #c5317b;
$custom-light: #dc77a1;
$custom-dark: #000000;
JSON
{
  "hex": "#c5317b",
  "rgb": {
    "r": 197,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 330,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56275,
    "c": 0.19395,
    "h": 355
  },
  "luminance": 0.15497
}

Semantic roles & 50–950 ramp

primary
#C5317B
secondary
#85CDA9
accent
#E39444
background
#FEF7F9
surface
#FCEEF2
border
#D5C9CC
text
#160A0E
muted
#847C7E

Preview Lab

Preview with #C5317B

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

Preview Lab → · Contrast checker → · Palette generator →

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