#977C1F#977C1F

#977C1F is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.6% C 0.111 H 91.7°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#977C1F
RGBrgb(151, 124, 31)
HSLhsl(47, 66%, 36%)
HSVhsv(47, 79%, 59%)
CMYKcmyk(0%, 17.9%, 79.5%, 40.8%)
CIE-LABlab(53.05, 0.83, 50.93)
CIE-LCHlch(53.05, 50.94, 89.06°)
OKLaboklab(59.57% -0.0033 0.111)
OKLCHoklch(59.57% 0.111 91.7)
XYZxyz(20.2187, 21.0948, 4.3028)
Luminance0.2109 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977C1F #1F3A97
analogous
#97401F #977C1F #76971F
triadic
#977C1F #1F977C #7C1F97
tetradic
#977C1F #1F9740 #1F3A97 #971F76
square
#977C1F #1F9740 #1F3A97 #971F76
split-complementary
#977C1F #1F7697 #401F97
monochromatic
#31290A #645215 #977C1F #CAA629 #DCBD54

Accessibility & contrast

On white

4.02
#977C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#977C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977C1F
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977C1F#FFFFFF#000000##000000
##977C1F1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0C
Deuteranopia (green-blind)
#918225
Tritanopia (blue-blind)
#A4716A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #977c1f;
/* rgb */ color: rgb(151, 124, 31);
/* oklch */ color: oklch(59.6% 0.111 91.7);
Tailwind
colors: {
  custom: {
    50: '#baa163',
    500: '#977c1f',
    950: '#000000',
  },
}
SCSS
$custom: #977c1f;
$custom-light: #baa163;
$custom-dark: #000000;
JSON
{
  "hex": "#977c1f",
  "rgb": {
    "r": 151,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 46.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59565,
    "c": 0.11101,
    "h": 91.7
  },
  "luminance": 0.21094
}

Semantic roles & 50–950 ramp

primary
#977C1F
secondary
#526BBF
accent
#65E93F
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #977C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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