#8B971F#8B971F

#8B971F is a light, vivid yellow. Relative luminance 0.277; OKLCH L 64.5% C 0.137 H 115.5°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#8B971F
RGBrgb(139, 151, 31)
HSLhsl(66, 66%, 36%)
HSVhsv(66, 79%, 59%)
CMYKcmyk(7.9%, 0%, 79.5%, 40.8%)
CIE-LABlab(59.64, -19.20, 56.52)
CIE-LCHlch(59.64, 59.69, 108.76°)
OKLaboklab(64.55% -0.0588 0.1234)
OKLCHoklch(64.55% 0.137 115.5)
XYZxyz(21.9620, 27.7215, 5.4899)
Luminance0.2772 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B971F #2B1F97
analogous
#97671F #8B971F #4F971F
triadic
#8B971F #1F8B97 #971F8B
tetradic
#8B971F #1F9767 #2B1F97 #971F4F
square
#8B971F #1F9767 #2B1F97 #971F4F
split-complementary
#8B971F #1F4F97 #671F97
monochromatic
#2E310A #5C6415 #8B971F #BACA29 #CEDC54

Accessibility & contrast

On white

3.21
#8B971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#8B971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B971F
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B971F#FFFFFF#000000##000000
##8B971F1.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F00
Deuteranopia (green-blind)
#A1912A
Tritanopia (blue-blind)
#948E81
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8b971f;
/* rgb */ color: rgb(139, 151, 31);
/* oklch */ color: oklch(64.5% 0.137 115.5);
Tailwind
colors: {
  custom: {
    50: '#b0b566',
    500: '#8b971f',
    950: '#000000',
  },
}
SCSS
$custom: #8b971f;
$custom-light: #b0b566;
$custom-dark: #000000;
JSON
{
  "hex": "#8b971f",
  "rgb": {
    "r": 139,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 66,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.64547,
    "c": 0.13671,
    "h": 115.5
  },
  "luminance": 0.27721
}

Semantic roles & 50–950 ramp

primary
#8B971F
secondary
#5D52BF
accent
#3FE950
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8B971F

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

Preview Lab → · Contrast checker → · Palette generator →

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