#7B271D#7B271D

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

Color values

HEX#7B271D
RGBrgb(123, 39, 29)
HSLhsl(6, 62%, 30%)
HSVhsv(6, 76%, 48%)
CMYKcmyk(0%, 68.3%, 76.4%, 51.8%)
CIE-LABlab(28.78, 35.87, 26.33)
CIE-LCHlch(28.78, 44.49, 36.28°)
OKLaboklab(39.97% 0.103 0.0593)
OKLCHoklch(39.97% 0.119 29.9)
XYZxyz(9.1167, 5.7520, 1.7924)
Luminance0.0575 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B271D #1D717B
analogous
#7B1D42 #7B271D #7B561D
triadic
#7B271D #1D7B27 #271D7B
tetradic
#7B271D #427B1D #1D717B #561D7B
square
#7B271D #427B1D #1D717B #561D7B
split-complementary
#7B271D #1D7B56 #1D427B
monochromatic
#190806 #491711 #7B271D #AD3729 #D25040

Accessibility & contrast

On white

9.77
#7B271D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B271D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B271D#FFFFFF#000000##FFFFFF
##7B271D1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F381B
Deuteranopia (green-blind)
#534B1A
Tritanopia (blue-blind)
#881025
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b271d;
/* rgb */ color: rgb(123, 39, 29);
/* oklch */ color: oklch(40.0% 0.119 29.9);
Tailwind
colors: {
  custom: {
    50: '#a86659',
    500: '#7b271d',
    950: '#000000',
  },
}
SCSS
$custom: #7b271d;
$custom-light: #a86659;
$custom-dark: #000000;
JSON
{
  "hex": "#7b271d",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 6.383,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39973,
    "c": 0.1188,
    "h": 29.9
  },
  "luminance": 0.05751
}

Semantic roles & 50–950 ramp

primary
#7B271D
secondary
#45A3AF
accent
#D4E543
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7B271D

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

Preview Lab → · Contrast checker → · Palette generator →

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