#8A971B#8A971B

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

Color values

HEX#8A971B
RGBrgb(138, 151, 27)
HSLhsl(66, 70%, 35%)
HSVhsv(66, 82%, 59%)
CMYKcmyk(8.6%, 0%, 82.1%, 40.8%)
CIE-LABlab(59.54, -19.79, 57.58)
CIE-LCHlch(59.54, 60.89, 108.97°)
OKLaboklab(64.44% -0.0607 0.125)
OKLCHoklch(64.44% 0.139 115.9)
XYZxyz(21.7463, 27.6160, 5.2215)
Luminance0.2762 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A971B #281B97
analogous
#97661B #8A971B #4C971B
triadic
#8A971B #1B8A97 #971B8A
tetradic
#8A971B #1B9766 #281B97 #971B4C
square
#8A971B #1B9766 #281B97 #971B4C
split-complementary
#8A971B #1B4C97 #661B97
monochromatic
#2B2F08 #5B6312 #8A971B #B9CB24 #D0DF4D

Accessibility & contrast

On white

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

On black

6.52
#8A971B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A971B
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A971B#FFFFFF#000000##000000
##8A971B1.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a971b;
/* rgb */ color: rgb(138, 151, 27);
/* oklch */ color: oklch(64.4% 0.139 115.9);
Tailwind
colors: {
  custom: {
    50: '#b0b564',
    500: '#8a971b',
    950: '#000000',
  },
}
SCSS
$custom: #8a971b;
$custom-light: #b0b564;
$custom-dark: #000000;
JSON
{
  "hex": "#8a971b",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 66.29,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.64445,
    "c": 0.13895,
    "h": 115.9
  },
  "luminance": 0.27616
}

Semantic roles & 50–950 ramp

primary
#8A971B
secondary
#594CC1
accent
#3BEC4E
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A971B

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

Preview Lab → · Contrast checker → · Palette generator →

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