#7F311B#7F311B

#7F311B is a dark, moderate red. Relative luminance 0.068; OKLCH L 42.0% C 0.114 H 36.4°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#7F311B
RGBrgb(127, 49, 27)
HSLhsl(13, 65%, 30%)
HSVhsv(13, 79%, 50%)
CMYKcmyk(0%, 61.4%, 78.7%, 50.2%)
CIE-LABlab(31.32, 32.46, 30.47)
CIE-LCHlch(31.32, 44.52, 43.19°)
OKLaboklab(42.02% 0.0915 0.0675)
OKLCHoklch(42.02% 0.114 36.4)
XYZxyz(10.0496, 6.7892, 1.8179)
Luminance0.0679 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F311B #1B697F
analogous
#7F1B37 #7F311B #7F631B
triadic
#7F311B #1B7F31 #311B7F
tetradic
#7F311B #377F1B #1B697F #631B7F
square
#7F311B #377F1B #1B697F #631B7F
split-complementary
#7F311B #1B7F63 #1B377F
monochromatic
#1A0A06 #4D1E10 #7F311B #B14426 #D6603E

Accessibility & contrast

On white

8.91
#7F311B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7F311B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F311B
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F311B#FFFFFF#000000##FFFFFF
##7F311B1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473F18
Deuteranopia (green-blind)
#5A5019
Tritanopia (blue-blind)
#8C1F2C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f311b;
/* rgb */ color: rgb(127, 49, 27);
/* oklch */ color: oklch(42.0% 0.114 36.4);
Tailwind
colors: {
  custom: {
    50: '#ab6c59',
    500: '#7f311b',
    950: '#000000',
  },
}
SCSS
$custom: #7f311b;
$custom-light: #ab6c59;
$custom-dark: #000000;
JSON
{
  "hex": "#7f311b",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 27
  },
  "hsl": {
    "h": 13.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42023,
    "c": 0.11368,
    "h": 36.4
  },
  "luminance": 0.06788
}

Semantic roles & 50–950 ramp

primary
#7F311B
secondary
#439AB3
accent
#C3E840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110703
muted
#807A78

Preview Lab

Preview with #7F311B

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

Preview Lab → · Contrast checker → · Palette generator →

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