#78171B#78171B

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

Color values

HEX#78171B
RGBrgb(120, 23, 27)
HSLhsl(358, 68%, 28%)
HSVhsv(358, 81%, 47%)
CMYKcmyk(0%, 80.8%, 77.5%, 52.9%)
CIE-LABlab(25.82, 41.12, 24.09)
CIE-LCHlch(25.82, 47.66, 30.36°)
OKLaboklab(37.65% 0.1194 0.0541)
OKLCHoklch(37.65% 0.131 24.4)
XYZxyz(8.2509, 4.6863, 1.5068)
Luminance0.0469 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78171B #177874
analogous
#78174B #78171B #784317
triadic
#78171B #1B7817 #171B78
tetradic
#78171B #4B7817 #177874 #431778
square
#78171B #4B7817 #177874 #431778
split-complementary
#78171B #177843 #174B78
monochromatic
#1A0506 #450D0F #78171B #AB2127 #D83239

Accessibility & contrast

On white

10.84
#78171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78171B
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78171B#FFFFFF#000000##FFFFFF
##78171B1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35301A
Deuteranopia (green-blind)
#4D4517
Tritanopia (blue-blind)
#85001A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #78171b;
/* rgb */ color: rgb(120, 23, 27);
/* oklch */ color: oklch(37.6% 0.131 24.4);
Tailwind
colors: {
  custom: {
    50: '#a75e57',
    500: '#78171b',
    950: '#000000',
  },
}
SCSS
$custom: #78171b;
$custom-light: #a75e57;
$custom-dark: #000000;
JSON
{
  "hex": "#78171b",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 357.526,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37646,
    "c": 0.13113,
    "h": 24.4
  },
  "luminance": 0.04685
}

Semantic roles & 50–950 ramp

primary
#78171B
secondary
#3EADA9
accent
#EBE43D
background
#FBF5F5
surface
#F6E9E9
border
#D0C5C5
text
#110503
muted
#807978

Preview Lab

Preview with #78171B

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

Preview Lab → · Contrast checker → · Palette generator →

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