#78171C#78171C

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

Color values

HEX#78171C
RGBrgb(120, 23, 28)
HSLhsl(357, 68%, 28%)
HSVhsv(357, 81%, 47%)
CMYKcmyk(0%, 80.8%, 76.7%, 52.9%)
CIE-LABlab(25.84, 41.17, 23.46)
CIE-LCHlch(25.84, 47.39, 29.68°)
OKLaboklab(37.66% 0.1198 0.053)
OKLCHoklch(37.66% 0.131 23.9)
XYZxyz(8.2627, 4.6910, 1.5688)
Luminance0.0469 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78171C #177873
analogous
#78174C #78171C #784217
triadic
#78171C #1C7817 #171C78
tetradic
#78171C #4C7817 #177873 #421778
square
#78171C #4C7817 #177873 #421778
split-complementary
#78171C #177842 #174C78
monochromatic
#1A0506 #450D10 #78171C #AB2128 #D8323A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##78171C#FFFFFF#000000##FFFFFF
##78171C1.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)
#35301B
Deuteranopia (green-blind)
#4D4518
Tritanopia (blue-blind)
#85001A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #78171c;
/* rgb */ color: rgb(120, 23, 28);
/* oklch */ color: oklch(37.7% 0.131 23.9);
Tailwind
colors: {
  custom: {
    50: '#a65e58',
    500: '#78171c',
    950: '#000000',
  },
}
SCSS
$custom: #78171c;
$custom-light: #a65e58;
$custom-dark: #000000;
JSON
{
  "hex": "#78171c",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 356.907,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37661,
    "c": 0.13102,
    "h": 23.9
  },
  "luminance": 0.0469
}

Semantic roles & 50–950 ramp

primary
#78171C
secondary
#3EADA7
accent
#EBE23D
background
#FBF5F5
surface
#F6E9E9
border
#D0C5C5
text
#110503
muted
#807978

Preview Lab

Preview with #78171C

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

Preview Lab → · Contrast checker → · Palette generator →

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