#7B271F#7B271F

#7B271F is a dark, moderate red. Relative luminance 0.058; OKLCH L 40.0% C 0.118 H 28.9°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#7B271F
RGBrgb(123, 39, 31)
HSLhsl(5, 60%, 30%)
HSVhsv(5, 75%, 48%)
CMYKcmyk(0%, 68.3%, 74.8%, 51.8%)
CIE-LABlab(28.80, 35.97, 25.13)
CIE-LCHlch(28.80, 43.88, 34.94°)
OKLaboklab(40% 0.1037 0.0571)
OKLCHoklch(40% 0.118 28.9)
XYZxyz(9.1422, 5.7622, 1.9269)
Luminance0.0576 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B271F #1F737B
analogous
#7B1F45 #7B271F #7B551F
triadic
#7B271F #1F7B27 #271F7B
tetradic
#7B271F #457B1F #1F737B #551F7B
square
#7B271F #457B1F #1F737B #551F7B
split-complementary
#7B271F #1F7B55 #1F457B
monochromatic
#190806 #4A1813 #7B271F #AC362B #D05144

Accessibility & contrast

On white

9.76
#7B271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B271F
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B271F#FFFFFF#000000##FFFFFF
##7B271F1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E381E
Deuteranopia (green-blind)
#534B1C
Tritanopia (blue-blind)
#881026
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b271f;
/* rgb */ color: rgb(123, 39, 31);
/* oklch */ color: oklch(40.0% 0.118 28.9);
Tailwind
colors: {
  custom: {
    50: '#a8665b',
    500: '#7b271f',
    950: '#000000',
  },
}
SCSS
$custom: #7b271f;
$custom-light: #a8665b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b271f",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 5.217,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40002,
    "c": 0.1184,
    "h": 28.9
  },
  "luminance": 0.05761
}

Semantic roles & 50–950 ramp

primary
#7B271F
secondary
#48A5AE
accent
#D5E345
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7B271F

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

Preview Lab → · Contrast checker → · Palette generator →

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