#78271B#78271B

#78271B is a dark, moderate red. Relative luminance 0.055; OKLCH L 39.4% C 0.116 H 31.1°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#78271B
RGBrgb(120, 39, 27)
HSLhsl(8, 63%, 29%)
HSVhsv(8, 78%, 47%)
CMYKcmyk(0%, 67.5%, 77.5%, 52.9%)
CIE-LABlab(28.18, 34.65, 26.71)
CIE-LCHlch(28.18, 43.75, 37.63°)
OKLaboklab(39.41% 0.0991 0.0598)
OKLCHoklch(39.41% 0.116 31.1)
XYZxyz(8.6700, 5.5245, 1.6465)
Luminance0.0552 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78271B #1B6C78
analogous
#781B3E #78271B #78561B
triadic
#78271B #1B7827 #271B78
tetradic
#78271B #3E781B #1B6C78 #561B78
square
#78271B #3E781B #1B6C78 #561B78
split-complementary
#78271B #1B7856 #1B3E78
monochromatic
#190806 #461710 #78271B #AA3726 #D34E3B

Accessibility & contrast

On white

9.98
#78271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#78271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78271B
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78271B#FFFFFF#000000##FFFFFF
##78271B1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3719
Deuteranopia (green-blind)
#524918
Tritanopia (blue-blind)
#841125
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #78271b;
/* rgb */ color: rgb(120, 39, 27);
/* oklch */ color: oklch(39.4% 0.116 31.1);
Tailwind
colors: {
  custom: {
    50: '#a66658',
    500: '#78271b',
    950: '#000000',
  },
}
SCSS
$custom: #78271b;
$custom-light: #a66658;
$custom-dark: #000000;
JSON
{
  "hex": "#78271b",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 7.742,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.39408,
    "c": 0.11572,
    "h": 31.1
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#78271B
secondary
#439FAC
accent
#D1E641
background
#FAF6F5
surface
#F5EBE9
border
#CFC6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #78271B

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

Preview Lab → · Contrast checker → · Palette generator →

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