#8B7E1F#8B7E1F

#8B7E1F is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.8% C 0.111 H 101.2°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8B7E1F
RGBrgb(139, 126, 31)
HSLhsl(53, 64%, 33%)
HSVhsv(53, 78%, 55%)
CMYKcmyk(0%, 9.4%, 77.7%, 45.5%)
CIE-LABlab(52.41, -5.85, 49.90)
CIE-LCHlch(52.41, 50.24, 96.69°)
OKLaboklab(58.78% -0.0216 0.1093)
OKLCHoklch(58.78% 0.111 101.2)
XYZxyz(18.3565, 20.5105, 4.2881)
Luminance0.2051 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B7E1F #1F2C8B
analogous
#8B481F #8B7E1F #628B1F
triadic
#8B7E1F #1F8B7E #7E1F8B
tetradic
#8B7E1F #1F8B48 #1F2C8B #8B1F62
square
#8B7E1F #1F8B48 #1F2C8B #8B1F62
split-complementary
#8B7E1F #1F628B #481F8B
monochromatic
#272309 #595114 #8B7E1F #BDAB2A #D7C74D

Accessibility & contrast

On white

4.12
#8B7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8B7E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B7E1F
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B7E1F#FFFFFF#000000##000000
##8B7E1F1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0B
Deuteranopia (green-blind)
#8E7F26
Tritanopia (blue-blind)
#96746C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8b7e1f;
/* rgb */ color: rgb(139, 126, 31);
/* oklch */ color: oklch(58.8% 0.111 101.2);
Tailwind
colors: {
  custom: {
    50: '#b0a363',
    500: '#8b7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #8b7e1f;
$custom-light: #b0a363;
$custom-dark: #000000;
JSON
{
  "hex": "#8b7e1f",
  "rgb": {
    "r": 139,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 52.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58775,
    "c": 0.11144,
    "h": 101.2
  },
  "luminance": 0.2051
}

Semantic roles & 50–950 ramp

primary
#8B7E1F
secondary
#4C59BA
accent
#55E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8B7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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