#C5313F#C5313F

#C5313F is a mid, vivid red. Relative luminance 0.144; OKLCH L 54.7% C 0.184 H 21.0°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#C5313F
RGBrgb(197, 49, 63)
HSLhsl(354, 60%, 48%)
HSVhsv(354, 75%, 77%)
CMYKcmyk(0%, 75.1%, 68%, 22.7%)
CIE-LABlab(44.84, 58.21, 28.09)
CIE-LCHlch(44.84, 64.63, 25.76°)
OKLaboklab(54.71% 0.1715 0.0657)
OKLCHoklch(54.71% 0.184 21)
XYZxyz(25.0242, 14.4296, 6.1692)
Luminance0.1443 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5313F #31C5B7
analogous
#C53189 #C5313F #C56D31
triadic
#C5313F #3FC531 #313FC5
tetradic
#C5313F #89C531 #31C5B7 #6D31C5
square
#C5313F #89C531 #31C5B7 #6D31C5
split-complementary
#C5313F #31C56D #3189C5
monochromatic
#631920 #94252F #C5313F #D75D68 #E38E96

Accessibility & contrast

On white

5.41
#C5313F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#C5313F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C5313F
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5313F#FFFFFF#000000##FFFFFF
##C5313F1.005.413.895.41
#FFFFFF5.411.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C563E
Deuteranopia (green-blind)
#81753A
Tritanopia (blue-blind)
#D80038
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #c5313f;
/* rgb */ color: rgb(197, 49, 63);
/* oklch */ color: oklch(54.7% 0.184 21.0);
Tailwind
colors: {
  custom: {
    50: '#df7574',
    500: '#c5313f',
    950: '#000000',
  },
}
SCSS
$custom: #c5313f;
$custom-light: #df7574;
$custom-dark: #000000;
JSON
{
  "hex": "#c5313f",
  "rgb": {
    "r": 197,
    "g": 49,
    "b": 63
  },
  "hsl": {
    "h": 354.324,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.54713,
    "c": 0.18366,
    "h": 21
  },
  "luminance": 0.14426
}

Semantic roles & 50–950 ramp

primary
#C5313F
secondary
#85CDC6
accent
#E3D444
background
#FEF7F7
surface
#FDEEED
border
#D5C9C8
text
#170908
muted
#857B7B

Preview Lab

Preview with #C5313F

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

Preview Lab → · Contrast checker → · Palette generator →

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