#977B1F#977B1F

#977B1F is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.4% C 0.110 H 90.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#977B1F
RGBrgb(151, 123, 31)
HSLhsl(46, 66%, 36%)
HSVhsv(46, 79%, 59%)
CMYKcmyk(0%, 18.5%, 79.5%, 40.8%)
CIE-LABlab(52.78, 1.40, 50.68)
CIE-LCHlch(52.78, 50.70, 88.42°)
OKLaboklab(59.35% -0.0017 0.1104)
OKLCHoklch(59.35% 0.11 90.9)
XYZxyz(20.0940, 20.8454, 4.2613)
Luminance0.2084 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977B1F #1F3B97
analogous
#973F1F #977B1F #77971F
triadic
#977B1F #1F977B #7B1F97
tetradic
#977B1F #1F973F #1F3B97 #971F77
square
#977B1F #1F973F #1F3B97 #971F77
split-complementary
#977B1F #1F7797 #3F1F97
monochromatic
#31280A #645215 #977B1F #CAA429 #DCBC54

Accessibility & contrast

On white

4.06
#977B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#977B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977B1F
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977B1F#FFFFFF#000000##000000
##977B1F1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A790C
Deuteranopia (green-blind)
#918125
Tritanopia (blue-blind)
#A47069
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #977b1f;
/* rgb */ color: rgb(151, 123, 31);
/* oklch */ color: oklch(59.4% 0.110 90.9);
Tailwind
colors: {
  custom: {
    50: '#baa063',
    500: '#977b1f',
    950: '#000000',
  },
}
SCSS
$custom: #977b1f;
$custom-light: #baa063;
$custom-dark: #000000;
JSON
{
  "hex": "#977b1f",
  "rgb": {
    "r": 151,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 46,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.5935,
    "c": 0.11043,
    "h": 90.9
  },
  "luminance": 0.20844
}

Semantic roles & 50–950 ramp

primary
#977B1F
secondary
#526CBF
accent
#67E93F
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #977B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#977B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva