#CC312D#CC312D

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

Color values

HEX#CC312D
RGBrgb(204, 49, 45)
HSLhsl(2, 64%, 49%)
HSVhsv(2, 78%, 80%)
CMYKcmyk(0%, 76%, 77.9%, 20%)
CIE-LABlab(45.94, 59.55, 40.16)
CIE-LCHlch(45.94, 71.83, 34.00°)
OKLaboklab(55.7% 0.171 0.0879)
OKLCHoklch(55.7% 0.192 27.2)
XYZxyz(26.4770, 15.2276, 4.0272)
Luminance0.1522 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC312D #2DC8CC
analogous
#CC2D79 #CC312D #CC812D
triadic
#CC312D #2DCC31 #312DCC
tetradic
#CC312D #79CC2D #2DC8CC #812DCC
square
#CC312D #79CC2D #2DC8CC #812DCC
split-complementary
#CC312D #2DCC81 #2D79CC
monochromatic
#681917 #9A2522 #CC312D #DB5F5B #E6908D

Accessibility & contrast

On white

5.19
#CC312D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #CC312D
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC312D#FFFFFF#000000##FFFFFF
##CC312D1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61572B
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#E10032
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #cc312d;
/* rgb */ color: rgb(204, 49, 45);
/* oklch */ color: oklch(55.7% 0.192 27.2);
Tailwind
colors: {
  custom: {
    50: '#e57667',
    500: '#cc312d',
    950: '#000000',
  },
}
SCSS
$custom: #cc312d;
$custom-light: #e57667;
$custom-dark: #000000;
JSON
{
  "hex": "#cc312d",
  "rgb": {
    "r": 204,
    "g": 49,
    "b": 45
  },
  "hsl": {
    "h": 1.509,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55697,
    "c": 0.19227,
    "h": 27.2
  },
  "luminance": 0.15223
}

Semantic roles & 50–950 ramp

primary
#CC312D
secondary
#85CED0
accent
#E3E741
background
#FFF7F6
surface
#FFEEEB
border
#D7C9C6
text
#180906
muted
#867B7A

Preview Lab

Preview with #CC312D

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

Preview Lab → · Contrast checker → · Palette generator →

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