#7B271B#7B271B

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

Color values

HEX#7B271B
RGBrgb(123, 39, 27)
HSLhsl(8, 64%, 29%)
HSVhsv(8, 78%, 48%)
CMYKcmyk(0%, 68.3%, 78%, 51.8%)
CIE-LABlab(28.75, 35.78, 27.51)
CIE-LCHlch(28.75, 45.13, 37.55°)
OKLaboklab(39.95% 0.1022 0.0613)
OKLCHoklch(39.95% 0.119 31)
XYZxyz(9.0927, 5.7424, 1.6663)
Luminance0.0574 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B271B #1B6F7B
analogous
#7B1B3F #7B271B #7B571B
triadic
#7B271B #1B7B27 #271B7B
tetradic
#7B271B #3F7B1B #1B6F7B #571B7B
square
#7B271B #3F7B1B #1B6F7B #571B7B
split-complementary
#7B271B #1B7B57 #1B3F7B
monochromatic
#190806 #491710 #7B271B #AD3726 #D44F3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B271B#FFFFFF#000000##FFFFFF
##7B271B1.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)
#3F3819
Deuteranopia (green-blind)
#544B18
Tritanopia (blue-blind)
#880F25
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b271b;
/* rgb */ color: rgb(123, 39, 27);
/* oklch */ color: oklch(39.9% 0.119 31.0);
Tailwind
colors: {
  custom: {
    50: '#a86658',
    500: '#7b271b',
    950: '#000000',
  },
}
SCSS
$custom: #7b271b;
$custom-light: #a86658;
$custom-dark: #000000;
JSON
{
  "hex": "#7b271b",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 7.5,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39947,
    "c": 0.11921,
    "h": 31
  },
  "luminance": 0.05741
}

Semantic roles & 50–950 ramp

primary
#7B271B
secondary
#43A2AF
accent
#D2E741
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7B271B

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

Preview Lab → · Contrast checker → · Palette generator →

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