#C5312F#C5312F

#C5312F is a mid, vivid red. Relative luminance 0.143; OKLCH L 54.5% C 0.185 H 26.5°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#C5312F
RGBrgb(197, 49, 47)
HSLhsl(1, 61%, 48%)
HSVhsv(1, 76%, 77%)
CMYKcmyk(0%, 75.1%, 76.1%, 22.7%)
CIE-LABlab(44.63, 57.50, 37.24)
CIE-LCHlch(44.63, 68.50, 32.93°)
OKLaboklab(54.48% 0.1658 0.0826)
OKLCHoklch(54.48% 0.185 26.5)
XYZxyz(24.6403, 14.2760, 4.1469)
Luminance0.1427 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5312F #2FC3C5
analogous
#C52F78 #C5312F #C57C2F
triadic
#C5312F #2FC531 #312FC5
tetradic
#C5312F #78C52F #2FC3C5 #7C2FC5
square
#C5312F #78C52F #2FC3C5 #7C2FC5
split-complementary
#C5312F #2FC57C #2F78C5
monochromatic
#621817 #942523 #C5312F #D85B5A #E38C8B

Accessibility & contrast

On white

5.45
#C5312F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#C5312F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C5312F
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5312F#FFFFFF#000000##FFFFFF
##C5312F1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E552D
Deuteranopia (green-blind)
#827529
Tritanopia (blue-blind)
#D90033
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #c5312f;
/* rgb */ color: rgb(197, 49, 47);
/* oklch */ color: oklch(54.5% 0.185 26.5);
Tailwind
colors: {
  custom: {
    50: '#e07568',
    500: '#c5312f',
    950: '#000000',
  },
}
SCSS
$custom: #c5312f;
$custom-light: #e07568;
$custom-dark: #000000;
JSON
{
  "hex": "#c5312f",
  "rgb": {
    "r": 197,
    "g": 49,
    "b": 47
  },
  "hsl": {
    "h": 0.8,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54482,
    "c": 0.18523,
    "h": 26.5
  },
  "luminance": 0.14272
}

Semantic roles & 50–950 ramp

primary
#C5312F
secondary
#82CCCD
accent
#E2E543
background
#FFF7F6
surface
#FEEDEB
border
#D6C8C6
text
#170906
muted
#857B7A

Preview Lab

Preview with #C5312F

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

Preview Lab → · Contrast checker → · Palette generator →

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