#8A971F#8A971F

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

Color values

HEX#8A971F
RGBrgb(138, 151, 31)
HSLhsl(67, 66%, 36%)
HSVhsv(67, 79%, 59%)
CMYKcmyk(8.6%, 0%, 79.5%, 40.8%)
CIE-LABlab(59.56, -19.64, 56.42)
CIE-LCHlch(59.56, 59.74, 109.19°)
OKLaboklab(64.46% -0.0599 0.1233)
OKLCHoklch(64.46% 0.137 115.9)
XYZxyz(21.7958, 27.6358, 5.4821)
Luminance0.2763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A971F #2C1F97
analogous
#97681F #8A971F #4E971F
triadic
#8A971F #1F8A97 #971F8A
tetradic
#8A971F #1F9768 #2C1F97 #971F4E
square
#8A971F #1F9768 #2C1F97 #971F4E
split-complementary
#8A971F #1F4E97 #681F97
monochromatic
#2D310A #5C6415 #8A971F #B8CA29 #CDDC54

Accessibility & contrast

On white

3.22
#8A971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#8A971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A971F
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A971F#FFFFFF#000000##000000
##8A971F1.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F00
Deuteranopia (green-blind)
#A1902A
Tritanopia (blue-blind)
#938E81
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #8a971f;
/* rgb */ color: rgb(138, 151, 31);
/* oklch */ color: oklch(64.5% 0.137 115.9);
Tailwind
colors: {
  custom: {
    50: '#b0b566',
    500: '#8a971f',
    950: '#000000',
  },
}
SCSS
$custom: #8a971f;
$custom-light: #b0b566;
$custom-dark: #000000;
JSON
{
  "hex": "#8a971f",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 66.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.64465,
    "c": 0.13706,
    "h": 115.9
  },
  "luminance": 0.27635
}

Semantic roles & 50–950 ramp

primary
#8A971F
secondary
#5E52BF
accent
#3FE951
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A971F

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

Preview Lab → · Contrast checker → · Palette generator →

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