#8B7F1A#8B7F1A

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

Color values

HEX#8B7F1A
RGBrgb(139, 127, 26)
HSLhsl(54, 68%, 32%)
HSVhsv(54, 81%, 55%)
CMYKcmyk(0%, 8.6%, 81.3%, 45.5%)
CIE-LABlab(52.67, -6.61, 51.85)
CIE-LCHlch(52.67, 52.27, 97.26°)
OKLaboklab(58.97% -0.0242 0.1125)
OKLCHoklch(58.97% 0.115 102.1)
XYZxyz(18.4242, 20.7431, 4.0104)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B7F1A #1A268B
analogous
#8B461A #8B7F1A #5F8B1A
triadic
#8B7F1A #1A8B7F #7F1A8B
tetradic
#8B7F1A #1A8B46 #1A268B #8B1A5F
square
#8B7F1A #1A8B46 #1A268B #8B1A5F
split-complementary
#8B7F1A #1A5F8B #461A8B
monochromatic
#242107 #575010 #8B7F1A #BFAE24 #DCCC43

Accessibility & contrast

On white

4.08
#8B7F1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B7F1A#FFFFFF#000000##000000
##8B7F1A1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8F8022
Tritanopia (blue-blind)
#96756C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8b7f1a;
/* rgb */ color: rgb(139, 127, 26);
/* oklch */ color: oklch(59.0% 0.115 102.1);
Tailwind
colors: {
  custom: {
    50: '#b1a361',
    500: '#8b7f1a',
    950: '#000000',
  },
}
SCSS
$custom: #8b7f1a;
$custom-light: #b1a361;
$custom-dark: #000000;
JSON
{
  "hex": "#8b7f1a",
  "rgb": {
    "r": 139,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 53.628,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58971,
    "c": 0.11503,
    "h": 102.1
  },
  "luminance": 0.20742
}

Semantic roles & 50–950 ramp

primary
#8B7F1A
secondary
#4451BD
accent
#4FEB3C
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8B7F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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