#8B7D1F#8B7D1F

#8B7D1F is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.5% C 0.111 H 100.4°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8B7D1F
RGBrgb(139, 125, 31)
HSLhsl(52, 64%, 33%)
HSVhsv(52, 78%, 55%)
CMYKcmyk(0%, 10.1%, 77.7%, 45.5%)
CIE-LABlab(52.13, -5.30, 49.64)
CIE-LCHlch(52.13, 49.92, 96.09°)
OKLaboklab(58.55% -0.02 0.1088)
OKLCHoklch(58.55% 0.111 100.4)
XYZxyz(18.2293, 20.2560, 4.2457)
Luminance0.2026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B7D1F #1F2D8B
analogous
#8B471F #8B7D1F #638B1F
triadic
#8B7D1F #1F8B7D #7D1F8B
tetradic
#8B7D1F #1F8B47 #1F2D8B #8B1F63
square
#8B7D1F #1F8B47 #1F2D8B #8B1F63
split-complementary
#8B7D1F #1F638B #471F8B
monochromatic
#272309 #595014 #8B7D1F #BDAA2A #D7C54D

Accessibility & contrast

On white

4.16
#8B7D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8B7D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B7D1F
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B7D1F#FFFFFF#000000##000000
##8B7D1F1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A790C
Deuteranopia (green-blind)
#8D7F26
Tritanopia (blue-blind)
#96736B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8b7d1f;
/* rgb */ color: rgb(139, 125, 31);
/* oklch */ color: oklch(58.5% 0.111 100.4);
Tailwind
colors: {
  custom: {
    50: '#b0a263',
    500: '#8b7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #8b7d1f;
$custom-light: #b0a263;
$custom-dark: #000000;
JSON
{
  "hex": "#8b7d1f",
  "rgb": {
    "r": 139,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 52.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58549,
    "c": 0.11058,
    "h": 100.4
  },
  "luminance": 0.20255
}

Semantic roles & 50–950 ramp

primary
#8B7D1F
secondary
#4C5ABA
accent
#57E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8B7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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