#8B7F1F#8B7F1F

#8B7F1F is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.0% C 0.112 H 101.9°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8B7F1F
RGBrgb(139, 127, 31)
HSLhsl(53, 64%, 33%)
HSVhsv(53, 78%, 55%)
CMYKcmyk(0%, 8.6%, 77.7%, 45.5%)
CIE-LABlab(52.69, -6.41, 50.17)
CIE-LCHlch(52.69, 50.57, 97.28°)
OKLaboklab(59% -0.0231 0.1099)
OKLCHoklch(59% 0.112 101.9)
XYZxyz(18.4850, 20.7675, 4.3309)
Luminance0.2077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B7F1F #1F2B8B
analogous
#8B491F #8B7F1F #618B1F
triadic
#8B7F1F #1F8B7F #7F1F8B
tetradic
#8B7F1F #1F8B49 #1F2B8B #8B1F61
square
#8B7F1F #1F8B49 #1F2B8B #8B1F61
split-complementary
#8B7F1F #1F618B #491F8B
monochromatic
#272409 #595114 #8B7F1F #BDAD2A #D7C84D

Accessibility & contrast

On white

4.07
#8B7F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8B7F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B7F1F
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B7F1F#FFFFFF#000000##000000
##8B7F1F1.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B0B
Deuteranopia (green-blind)
#8F8026
Tritanopia (blue-blind)
#96756D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8b7f1f;
/* rgb */ color: rgb(139, 127, 31);
/* oklch */ color: oklch(59.0% 0.112 101.9);
Tailwind
colors: {
  custom: {
    50: '#b0a363',
    500: '#8b7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #8b7f1f;
$custom-light: #b0a363;
$custom-dark: #000000;
JSON
{
  "hex": "#8b7f1f",
  "rgb": {
    "r": 139,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 53.333,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59001,
    "c": 0.1123,
    "h": 101.9
  },
  "luminance": 0.20767
}

Semantic roles & 50–950 ramp

primary
#8B7F1F
secondary
#4C58BA
accent
#54E741
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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