#78271F#78271F

#78271F is a dark, moderate red. Relative luminance 0.055; OKLCH L 39.5% C 0.115 H 28.9°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#78271F
RGBrgb(120, 39, 31)
HSLhsl(5, 59%, 30%)
HSVhsv(5, 74%, 47%)
CMYKcmyk(0%, 67.5%, 74.2%, 52.9%)
CIE-LABlab(28.23, 34.85, 24.32)
CIE-LCHlch(28.23, 42.50, 34.91°)
OKLaboklab(39.47% 0.1006 0.0556)
OKLCHoklch(39.47% 0.115 28.9)
XYZxyz(8.7195, 5.5443, 1.9071)
Luminance0.0554 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78271F #1F7078
analogous
#781F44 #78271F #78541F
triadic
#78271F #1F7827 #271F78
tetradic
#78271F #44781F #1F7078 #541F78
square
#78271F #44781F #1F7078 #541F78
split-complementary
#78271F #1F7854 #1F4478
monochromatic
#180806 #471712 #78271F #A9372C #CE5043

Accessibility & contrast

On white

9.96
#78271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#78271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78271F
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78271F#FFFFFF#000000##FFFFFF
##78271F1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D371E
Deuteranopia (green-blind)
#52491C
Tritanopia (blue-blind)
#841226
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #78271f;
/* rgb */ color: rgb(120, 39, 31);
/* oklch */ color: oklch(39.5% 0.115 28.9);
Tailwind
colors: {
  custom: {
    50: '#a5665b',
    500: '#78271f',
    950: '#000000',
  },
}
SCSS
$custom: #78271f;
$custom-light: #a5665b;
$custom-dark: #000000;
JSON
{
  "hex": "#78271f",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 5.393,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39465,
    "c": 0.11489,
    "h": 28.9
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#78271F
secondary
#47A2AB
accent
#D4E246
background
#FAF6F5
surface
#F4EBE9
border
#CEC6C5
text
#100604
muted
#7F7A79

Preview Lab

Preview with #78271F

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

Preview Lab → · Contrast checker → · Palette generator →

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