#7B271A#7B271A

#7B271A is a dark, moderate red. Relative luminance 0.057; OKLCH L 39.9% C 0.119 H 31.5°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#7B271A
RGBrgb(123, 39, 26)
HSLhsl(8, 65%, 29%)
HSVhsv(8, 79%, 48%)
CMYKcmyk(0%, 68.3%, 78.9%, 51.8%)
CIE-LABlab(28.74, 35.73, 28.09)
CIE-LCHlch(28.74, 45.45, 38.17°)
OKLaboklab(39.93% 0.1019 0.0623)
OKLCHoklch(39.93% 0.119 31.5)
XYZxyz(9.0814, 5.7379, 1.6064)
Luminance0.0574 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B271A #1A6E7B
analogous
#7B1A3E #7B271A #7B581A
triadic
#7B271A #1A7B27 #271A7B
tetradic
#7B271A #3E7B1A #1A6E7B #581A7B
square
#7B271A #3E7B1A #1A6E7B #581A7B
split-complementary
#7B271A #1A7B58 #1A3E7B
monochromatic
#190805 #48170F #7B271A #AE3725 #D54F3A

Accessibility & contrast

On white

9.78
#7B271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7B271A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B271A
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B271A#FFFFFF#000000##FFFFFF
##7B271A1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3818
Deuteranopia (green-blind)
#544B17
Tritanopia (blue-blind)
#880F25
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b271a;
/* rgb */ color: rgb(123, 39, 26);
/* oklch */ color: oklch(39.9% 0.119 31.5);
Tailwind
colors: {
  custom: {
    50: '#a86657',
    500: '#7b271a',
    950: '#000000',
  },
}
SCSS
$custom: #7b271a;
$custom-light: #a86657;
$custom-dark: #000000;
JSON
{
  "hex": "#7b271a",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 8.041,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39934,
    "c": 0.11943,
    "h": 31.5
  },
  "luminance": 0.05737
}

Semantic roles & 50–950 ramp

primary
#7B271A
secondary
#42A1AF
accent
#D2E840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7B271A

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

Preview Lab → · Contrast checker → · Palette generator →

#7B271A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva