#78171A#78171A

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

Color values

HEX#78171A
RGBrgb(120, 23, 26)
HSLhsl(358, 68%, 28%)
HSVhsv(358, 81%, 47%)
CMYKcmyk(0%, 80.8%, 78.3%, 52.9%)
CIE-LABlab(25.81, 41.08, 24.71)
CIE-LCHlch(25.81, 47.94, 31.03°)
OKLaboklab(37.63% 0.1191 0.0552)
OKLCHoklch(37.63% 0.131 24.9)
XYZxyz(8.2396, 4.6817, 1.4469)
Luminance0.0468 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78171A #177875
analogous
#78174A #78171A #784417
triadic
#78171A #1A7817 #171A78
tetradic
#78171A #4A7817 #177875 #441778
square
#78171A #4A7817 #177875 #441778
split-complementary
#78171A #177844 #174A78
monochromatic
#1A0506 #450D0F #78171A #AB2125 #D83237

Accessibility & contrast

On white

10.85
#78171A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78171A
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78171A#FFFFFF#000000##FFFFFF
##78171A1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353019
Deuteranopia (green-blind)
#4D4516
Tritanopia (blue-blind)
#850019
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #78171a;
/* rgb */ color: rgb(120, 23, 26);
/* oklch */ color: oklch(37.6% 0.131 24.9);
Tailwind
colors: {
  custom: {
    50: '#a75e56',
    500: '#78171a',
    950: '#000000',
  },
}
SCSS
$custom: #78171a;
$custom-light: #a75e56;
$custom-dark: #000000;
JSON
{
  "hex": "#78171a",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 358.144,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37631,
    "c": 0.13124,
    "h": 24.9
  },
  "luminance": 0.0468
}

Semantic roles & 50–950 ramp

primary
#78171A
secondary
#3EADAA
accent
#EBE53D
background
#FBF5F5
surface
#F6E9E9
border
#D0C5C5
text
#110503
muted
#807978

Preview Lab

Preview with #78171A

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

Preview Lab → · Contrast checker → · Palette generator →

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