#8B971C#8B971C

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

Color values

HEX#8B971C
RGBrgb(139, 151, 28)
HSLhsl(66, 69%, 35%)
HSVhsv(66, 81%, 59%)
CMYKcmyk(7.9%, 0%, 81.5%, 40.8%)
CIE-LABlab(59.62, -19.32, 57.40)
CIE-LCHlch(59.62, 60.56, 108.60°)
OKLaboklab(64.53% -0.0593 0.1248)
OKLCHoklch(64.53% 0.138 115.4)
XYZxyz(21.9243, 27.7064, 5.2913)
Luminance0.2771 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B971C #281C97
analogous
#97661C #8B971C #4D971C
triadic
#8B971C #1C8B97 #971C8B
tetradic
#8B971C #1C9766 #281C97 #971C4D
square
#8B971C #1C9766 #281C97 #971C4D
split-complementary
#8B971C #1C4D97 #661C97
monochromatic
#2C3009 #5B6312 #8B971C #BBCB26 #D0DE4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B971C#FFFFFF#000000##000000
##8B971C1.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)
#948E81
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8b971c;
/* rgb */ color: rgb(139, 151, 28);
/* oklch */ color: oklch(64.5% 0.138 115.4);
Tailwind
colors: {
  custom: {
    50: '#b0b565',
    500: '#8b971c',
    950: '#000000',
  },
}
SCSS
$custom: #8b971c;
$custom-light: #b0b565;
$custom-dark: #000000;
JSON
{
  "hex": "#8b971c",
  "rgb": {
    "r": 139,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 65.854,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.64532,
    "c": 0.13815,
    "h": 115.4
  },
  "luminance": 0.27706
}

Semantic roles & 50–950 ramp

primary
#8B971C
secondary
#594EC1
accent
#3CEC4D
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8B971C

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

Preview Lab → · Contrast checker → · Palette generator →

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