#8B791F#8B791F

#8B791F is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.7% C 0.107 H 97.3°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8B791F
RGBrgb(139, 121, 31)
HSLhsl(50, 64%, 33%)
HSVhsv(50, 78%, 55%)
CMYKcmyk(0%, 12.9%, 77.7%, 45.5%)
CIE-LABlab(50.99, -3.06, 48.58)
CIE-LCHlch(50.99, 48.68, 93.61°)
OKLaboklab(57.65% -0.0137 0.1065)
OKLCHoklch(57.65% 0.107 97.3)
XYZxyz(17.7331, 19.2636, 4.0803)
Luminance0.1926 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B791F #1F318B
analogous
#8B431F #8B791F #678B1F
triadic
#8B791F #1F8B79 #791F8B
tetradic
#8B791F #1F8B43 #1F318B #8B1F67
square
#8B791F #1F8B43 #1F318B #8B1F67
split-complementary
#8B791F #1F678B #431F8B
monochromatic
#272209 #594D14 #8B791F #BDA52A #D7C04D

Accessibility & contrast

On white

4.33
#8B791F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#8B791F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B791F
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B791F#FFFFFF#000000##000000
##8B791F1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#86760E
Deuteranopia (green-blind)
#8B7C25
Tritanopia (blue-blind)
#966F68
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8b791f;
/* rgb */ color: rgb(139, 121, 31);
/* oklch */ color: oklch(57.7% 0.107 97.3);
Tailwind
colors: {
  custom: {
    50: '#b09f62',
    500: '#8b791f',
    950: '#000000',
  },
}
SCSS
$custom: #8b791f;
$custom-light: #b09f62;
$custom-dark: #000000;
JSON
{
  "hex": "#8b791f",
  "rgb": {
    "r": 139,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 50,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57652,
    "c": 0.10738,
    "h": 97.3
  },
  "luminance": 0.19263
}

Semantic roles & 50–950 ramp

primary
#8B791F
secondary
#4C5EBA
accent
#5DE741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8B791F

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

Preview Lab → · Contrast checker → · Palette generator →

#8B791F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva