#7B271C#7B271C

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

Color values

HEX#7B271C
RGBrgb(123, 39, 28)
HSLhsl(7, 63%, 30%)
HSVhsv(7, 77%, 48%)
CMYKcmyk(0%, 68.3%, 77.2%, 51.8%)
CIE-LABlab(28.77, 35.82, 26.92)
CIE-LCHlch(28.77, 44.81, 36.92°)
OKLaboklab(39.96% 0.1026 0.0603)
OKLCHoklch(39.96% 0.119 30.5)
XYZxyz(9.1045, 5.7472, 1.7283)
Luminance0.0575 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B271C #1C707B
analogous
#7B1C41 #7B271C #7B561C
triadic
#7B271C #1C7B27 #271C7B
tetradic
#7B271C #417B1C #1C707B #561C7B
square
#7B271C #417B1C #1C707B #561C7B
split-complementary
#7B271C #1C7B56 #1C417B
monochromatic
#190806 #491711 #7B271C #AD3727 #D3503E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B271C#FFFFFF#000000##FFFFFF
##7B271C1.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)
#3F381A
Deuteranopia (green-blind)
#534B19
Tritanopia (blue-blind)
#881025
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b271c;
/* rgb */ color: rgb(123, 39, 28);
/* oklch */ color: oklch(40.0% 0.119 30.5);
Tailwind
colors: {
  custom: {
    50: '#a86659',
    500: '#7b271c',
    950: '#000000',
  },
}
SCSS
$custom: #7b271c;
$custom-light: #a86659;
$custom-dark: #000000;
JSON
{
  "hex": "#7b271c",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 6.947,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3996,
    "c": 0.119,
    "h": 30.5
  },
  "luminance": 0.05746
}

Semantic roles & 50–950 ramp

primary
#7B271C
secondary
#44A2AF
accent
#D3E642
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7B271C

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

Preview Lab → · Contrast checker → · Palette generator →

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