#78171F#78171F

#78171F is a dark, vivid red. Relative luminance 0.047; OKLCH L 37.7% C 0.131 H 22.3°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#78171F
RGBrgb(120, 23, 31)
HSLhsl(355, 68%, 28%)
HSVhsv(355, 81%, 47%)
CMYKcmyk(0%, 80.8%, 74.2%, 52.9%)
CIE-LABlab(25.88, 41.31, 21.57)
CIE-LCHlch(25.88, 46.60, 27.57°)
OKLaboklab(37.71% 0.121 0.0495)
OKLCHoklch(37.71% 0.131 22.3)
XYZxyz(8.3004, 4.7061, 1.7674)
Luminance0.0471 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78171F #177870
analogous
#78174F #78171F #784017
triadic
#78171F #1F7817 #171F78
tetradic
#78171F #4F7817 #177870 #401778
square
#78171F #4F7817 #177870 #401778
split-complementary
#78171F #177840 #174F78
monochromatic
#1A0507 #450D12 #78171F #AB212C #D8323F

Accessibility & contrast

On white

10.82
#78171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#78171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78171F
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78171F#FFFFFF#000000##FFFFFF
##78171F1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34301E
Deuteranopia (green-blind)
#4D451C
Tritanopia (blue-blind)
#85001B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #78171f;
/* rgb */ color: rgb(120, 23, 31);
/* oklch */ color: oklch(37.7% 0.131 22.3);
Tailwind
colors: {
  custom: {
    50: '#a65e5a',
    500: '#78171f',
    950: '#000000',
  },
}
SCSS
$custom: #78171f;
$custom-light: #a65e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#78171f",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 355.052,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37708,
    "c": 0.13074,
    "h": 22.3
  },
  "luminance": 0.04705
}

Semantic roles & 50–950 ramp

primary
#78171F
secondary
#3EADA4
accent
#EBDC3D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #78171F

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

Preview Lab → · Contrast checker → · Palette generator →

#78171F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva