#8B971A#8B971A

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

Color values

HEX#8B971A
RGBrgb(139, 151, 26)
HSLhsl(66, 71%, 35%)
HSVhsv(66, 83%, 59%)
CMYKcmyk(7.9%, 0%, 82.8%, 40.8%)
CIE-LABlab(59.61, -19.39, 57.95)
CIE-LCHlch(59.61, 61.11, 108.50°)
OKLaboklab(64.52% -0.0597 0.1256)
OKLCHoklch(64.52% 0.139 115.4)
XYZxyz(21.9012, 27.6971, 5.1694)
Luminance0.2770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B971A #261A97
analogous
#97651A #8B971A #4D971A
triadic
#8B971A #1A8B97 #971A8B
tetradic
#8B971A #1A9765 #261A97 #971A4D
square
#8B971A #1A9765 #261A97 #971A4D
split-complementary
#8B971A #1A4D97 #651A97
monochromatic
#2B2F08 #5B6311 #8B971A #BBCB23 #D2E04B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B971A#FFFFFF#000000##000000
##8B971A1.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)
#A19027
Tritanopia (blue-blind)
#958E81
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8b971a;
/* rgb */ color: rgb(139, 151, 26);
/* oklch */ color: oklch(64.5% 0.139 115.4);
Tailwind
colors: {
  custom: {
    50: '#b1b564',
    500: '#8b971a',
    950: '#000000',
  },
}
SCSS
$custom: #8b971a;
$custom-light: #b1b564;
$custom-dark: #000000;
JSON
{
  "hex": "#8b971a",
  "rgb": {
    "r": 139,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 65.76,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.64522,
    "c": 0.13904,
    "h": 115.4
  },
  "luminance": 0.27697
}

Semantic roles & 50–950 ramp

primary
#8B971A
secondary
#564BC2
accent
#3AED4C
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8B971A

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

Preview Lab → · Contrast checker → · Palette generator →

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