#8B971B#8B971B

#8B971B 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#8B971B
RGBrgb(139, 151, 27)
HSLhsl(66, 70%, 35%)
HSVhsv(66, 82%, 59%)
CMYKcmyk(7.9%, 0%, 82.1%, 40.8%)
CIE-LABlab(59.62, -19.35, 57.68)
CIE-LCHlch(59.62, 60.84, 108.55°)
OKLaboklab(64.53% -0.0595 0.1252)
OKLCHoklch(64.53% 0.139 115.4)
XYZxyz(21.9125, 27.7017, 5.2293)
Luminance0.2770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B971B #271B97
analogous
#97651B #8B971B #4D971B
triadic
#8B971B #1B8B97 #971B8B
tetradic
#8B971B #1B9765 #271B97 #971B4D
square
#8B971B #1B9765 #271B97 #971B4D
split-complementary
#8B971B #1B4D97 #651B97
monochromatic
#2B2F08 #5B6312 #8B971B #BBCB24 #D1DF4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #8b971b;
/* rgb */ color: rgb(139, 151, 27);
/* oklch */ color: oklch(64.5% 0.139 115.4);
Tailwind
colors: {
  custom: {
    50: '#b0b564',
    500: '#8b971b',
    950: '#000000',
  },
}
SCSS
$custom: #8b971b;
$custom-light: #b0b564;
$custom-dark: #000000;
JSON
{
  "hex": "#8b971b",
  "rgb": {
    "r": 139,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 65.806,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.64527,
    "c": 0.1386,
    "h": 115.4
  },
  "luminance": 0.27701
}

Semantic roles & 50–950 ramp

primary
#8B971B
secondary
#584CC1
accent
#3BEC4C
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8B971B

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

Preview Lab → · Contrast checker → · Palette generator →

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