#8B841F#8B841F

#8B841F is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.1% C 0.117 H 105.3°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8B841F
RGBrgb(139, 132, 31)
HSLhsl(56, 64%, 33%)
HSVhsv(56, 78%, 55%)
CMYKcmyk(0%, 5%, 77.7%, 45.5%)
CIE-LABlab(54.12, -9.15, 51.49)
CIE-LCHlch(54.12, 52.30, 100.08°)
OKLaboklab(60.14% -0.0308 0.1127)
OKLCHoklch(60.14% 0.117 105.3)
XYZxyz(19.1469, 22.0912, 4.5515)
Luminance0.2209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B841F #1F268B
analogous
#8B4E1F #8B841F #5C8B1F
triadic
#8B841F #1F8B84 #841F8B
tetradic
#8B841F #1F8B4E #1F268B #8B1F5C
square
#8B841F #1F8B4E #1F268B #8B1F5C
split-complementary
#8B841F #1F5C8B #4E1F8B
monochromatic
#272509 #595414 #8B841F #BDB42A #D7CE4D

Accessibility & contrast

On white

3.88
#8B841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#8B841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B841F
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B841F#FFFFFF#000000##000000
##8B841F1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#938327
Tritanopia (blue-blind)
#967B71
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8b841f;
/* rgb */ color: rgb(139, 132, 31);
/* oklch */ color: oklch(60.1% 0.117 105.3);
Tailwind
colors: {
  custom: {
    50: '#b0a763',
    500: '#8b841f',
    950: '#000000',
  },
}
SCSS
$custom: #8b841f;
$custom-light: #b0a763;
$custom-dark: #000000;
JSON
{
  "hex": "#8b841f",
  "rgb": {
    "r": 139,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 56.111,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60138,
    "c": 0.11685,
    "h": 105.3
  },
  "luminance": 0.2209
}

Semantic roles & 50–950 ramp

primary
#8B841F
secondary
#4C53BA
accent
#4CE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B841F

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

Preview Lab → · Contrast checker → · Palette generator →

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