#C5317F#C5317F

#C5317F is a mid, vivid pink. Relative luminance 0.156; OKLCH L 56.4% C 0.196 H 353.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#C5317F
RGBrgb(197, 49, 127)
HSLhsl(328, 60%, 48%)
HSVhsv(328, 75%, 77%)
CMYKcmyk(0%, 75.1%, 35.5%, 22.7%)
CIE-LABlab(46.45, 63.35, -9.00)
CIE-LCHlch(46.45, 63.98, 351.92°)
OKLaboklab(56.42% 0.1943 -0.023)
OKLCHoklch(56.42% 0.196 353.2)
XYZxyz(27.9568, 15.6026, 21.6139)
Luminance0.1560 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5317F #31C577
analogous
#C131C5 #C5317F #C53135
triadic
#C5317F #7FC531 #317FC5
tetradic
#C5317F #C5C131 #31C577 #3135C5
square
#C5317F #C5C131 #31C577 #3135C5
split-complementary
#C5317F #35C531 #31C5C1
monochromatic
#631940 #94255F #C5317F #D75D9D #E38EBB

Accessibility & contrast

On white

5.10
#C5317F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#C5317F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C5317F
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5317F#FFFFFF#000000##FFFFFF
##C5317F1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5D81
Deuteranopia (green-blind)
#77787C
Tritanopia (blue-blind)
#D42254
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #c5317f;
/* rgb */ color: rgb(197, 49, 127);
/* oklch */ color: oklch(56.4% 0.196 353.2);
Tailwind
colors: {
  custom: {
    50: '#dc77a4',
    500: '#c5317f',
    950: '#000000',
  },
}
SCSS
$custom: #c5317f;
$custom-light: #dc77a4;
$custom-dark: #000000;
JSON
{
  "hex": "#c5317f",
  "rgb": {
    "r": 197,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 328.378,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56419,
    "c": 0.19568,
    "h": 353.2
  },
  "luminance": 0.15599
}

Semantic roles & 50–950 ramp

primary
#C5317F
secondary
#85CDA7
accent
#E39044
background
#FEF7FA
surface
#FCEEF4
border
#D5C9CE
text
#160A0F
muted
#847C7F

Preview Lab

Preview with #C5317F

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

Preview Lab → · Contrast checker → · Palette generator →

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