#CF312F#CF312F

#CF312F is a mid, vivid red. Relative luminance 0.157; OKLCH L 56.3% C 0.195 H 26.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#CF312F
RGBrgb(207, 49, 47)
HSLhsl(1, 63%, 50%)
HSVhsv(1, 77%, 81%)
CMYKcmyk(0%, 76.3%, 77.3%, 18.8%)
CIE-LABlab(46.54, 60.51, 39.86)
CIE-LCHlch(46.54, 72.46, 33.37°)
OKLaboklab(56.25% 0.1741 0.0876)
OKLCHoklch(56.25% 0.195 26.7)
XYZxyz(27.3468, 15.6716, 4.2738)
Luminance0.1567 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF312F #2FCDCF
analogous
#CF2F7D #CF312F #CF812F
triadic
#CF312F #2FCF31 #312FCF
tetradic
#CF312F #7DCF2F #2FCDCF #812FCF
square
#CF312F #7DCF2F #2FCDCF #812FCF
split-complementary
#CF312F #2FCF81 #2F7DCF
monochromatic
#6B1918 #9D2524 #CF312F #DB6260 #E69392

Accessibility & contrast

On white

5.08
#CF312F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#CF312F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CF312F
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF312F#FFFFFF#000000##FFFFFF
##CF312F1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62582D
Deuteranopia (green-blind)
#897B28
Tritanopia (blue-blind)
#E40033
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #cf312f;
/* rgb */ color: rgb(207, 49, 47);
/* oklch */ color: oklch(56.3% 0.195 26.7);
Tailwind
colors: {
  custom: {
    50: '#e77668',
    500: '#cf312f',
    950: '#000000',
  },
}
SCSS
$custom: #cf312f;
$custom-light: #e77668;
$custom-dark: #000000;
JSON
{
  "hex": "#cf312f",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 47
  },
  "hsl": {
    "h": 0.75,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5625,
    "c": 0.1949,
    "h": 26.7
  },
  "luminance": 0.15667
}

Semantic roles & 50–950 ramp

primary
#CF312F
secondary
#89D0D1
accent
#E4E642
background
#FFF7F6
surface
#FFEEEB
border
#D7C9C6
text
#180A06
muted
#867C7A

Preview Lab

Preview with #CF312F

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

Preview Lab → · Contrast checker → · Palette generator →

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