#CC312B#CC312B

#CC312B is a mid, vivid red. Relative luminance 0.152; OKLCH L 55.7% C 0.193 H 27.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#CC312B
RGBrgb(204, 49, 43)
HSLhsl(2, 65%, 48%)
HSVhsv(2, 79%, 80%)
CMYKcmyk(0%, 76%, 78.9%, 20%)
CIE-LABlab(45.92, 59.48, 41.24)
CIE-LCHlch(45.92, 72.38, 34.74°)
OKLaboklab(55.68% 0.1704 0.0896)
OKLCHoklch(55.68% 0.193 27.7)
XYZxyz(26.4394, 15.2126, 3.8292)
Luminance0.1521 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC312B #2BC6CC
analogous
#CC2B75 #CC312B #CC812B
triadic
#CC312B #2BCC31 #312BCC
tetradic
#CC312B #75CC2B #2BC6CC #812BCC
square
#CC312B #75CC2B #2BC6CC #812BCC
split-complementary
#CC312B #2BCC81 #2B75CC
monochromatic
#671916 #992520 #CC312B #DC5D58 #E78E8B

Accessibility & contrast

On white

5.20
#CC312B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#CC312B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC312B
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC312B#FFFFFF#000000##FFFFFF
##CC312B1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615728
Deuteranopia (green-blind)
#877924
Tritanopia (blue-blind)
#E10032
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #cc312b;
/* rgb */ color: rgb(204, 49, 43);
/* oklch */ color: oklch(55.7% 0.193 27.7);
Tailwind
colors: {
  custom: {
    50: '#e57665',
    500: '#cc312b',
    950: '#000000',
  },
}
SCSS
$custom: #cc312b;
$custom-light: #e57665;
$custom-dark: #000000;
JSON
{
  "hex": "#cc312b",
  "rgb": {
    "r": 204,
    "g": 49,
    "b": 43
  },
  "hsl": {
    "h": 2.236,
    "s": 65.182,
    "l": 48.431
  },
  "oklch": {
    "l": 0.55675,
    "c": 0.19253,
    "h": 27.7
  },
  "luminance": 0.15208
}

Semantic roles & 50–950 ramp

primary
#CC312B
secondary
#82CED0
accent
#E2E840
background
#FFF7F6
surface
#FFEEEB
border
#D7C9C6
text
#180906
muted
#867B7A

Preview Lab

Preview with #CC312B

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

Preview Lab → · Contrast checker → · Palette generator →

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