#7F311F#7F311F

#7F311F is a dark, moderate red. Relative luminance 0.068; OKLCH L 42.1% C 0.113 H 34.4°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#7F311F
RGBrgb(127, 49, 31)
HSLhsl(11, 61%, 31%)
HSVhsv(11, 76%, 50%)
CMYKcmyk(0%, 61.4%, 75.6%, 50.2%)
CIE-LABlab(31.37, 32.65, 28.22)
CIE-LCHlch(31.37, 43.15, 40.84°)
OKLaboklab(42.07% 0.0929 0.0636)
OKLCHoklch(42.07% 0.113 34.4)
XYZxyz(10.0991, 6.8089, 2.0785)
Luminance0.0681 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F311F #1F6D7F
analogous
#7F1F3D #7F311F #7F611F
triadic
#7F311F #1F7F31 #311F7F
tetradic
#7F311F #3D7F1F #1F6D7F #611F7F
square
#7F311F #3D7F1F #1F6D7F #611F7F
split-complementary
#7F311F #1F7F61 #1F3D7F
monochromatic
#1D0B07 #4E1E13 #7F311F #B0442B #D26146

Accessibility & contrast

On white

8.89
#7F311F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F311F
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F311F#FFFFFF#000000##FFFFFF
##7F311F1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463F1D
Deuteranopia (green-blind)
#5A501D
Tritanopia (blue-blind)
#8C1F2D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f311f;
/* rgb */ color: rgb(127, 49, 31);
/* oklch */ color: oklch(42.1% 0.113 34.4);
Tailwind
colors: {
  custom: {
    50: '#aa6c5b',
    500: '#7f311f',
    950: '#000000',
  },
}
SCSS
$custom: #7f311f;
$custom-light: #aa6c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f311f",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 31
  },
  "hsl": {
    "h": 11.25,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42073,
    "c": 0.11257,
    "h": 34.4
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

primary
#7F311F
secondary
#489EB2
accent
#C6E444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110704
muted
#807A79

Preview Lab

Preview with #7F311F

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

Preview Lab → · Contrast checker → · Palette generator →

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