#977D1F#977D1F

#977D1F is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.8% C 0.112 H 92.5°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#977D1F
RGBrgb(151, 125, 31)
HSLhsl(47, 66%, 36%)
HSVhsv(47, 79%, 59%)
CMYKcmyk(0%, 17.2%, 79.5%, 40.8%)
CIE-LABlab(53.33, 0.27, 51.19)
CIE-LCHlch(53.33, 51.19, 89.70°)
OKLaboklab(59.78% -0.0049 0.1115)
OKLCHoklch(59.78% 0.112 92.5)
XYZxyz(20.3446, 21.3467, 4.3448)
Luminance0.2135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977D1F #1F3997
analogous
#97411F #977D1F #75971F
triadic
#977D1F #1F977D #7D1F97
tetradic
#977D1F #1F9741 #1F3997 #971F75
square
#977D1F #1F9741 #1F3997 #971F75
split-complementary
#977D1F #1F7597 #411F97
monochromatic
#31290A #645315 #977D1F #CAA729 #DCBF54

Accessibility & contrast

On white

3.99
#977D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#977D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977D1F
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977D1F#FFFFFF#000000##000000
##977D1F1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B0B
Deuteranopia (green-blind)
#928325
Tritanopia (blue-blind)
#A4726B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #977d1f;
/* rgb */ color: rgb(151, 125, 31);
/* oklch */ color: oklch(59.8% 0.112 92.5);
Tailwind
colors: {
  custom: {
    50: '#baa263',
    500: '#977d1f',
    950: '#000000',
  },
}
SCSS
$custom: #977d1f;
$custom-light: #baa263;
$custom-dark: #000000;
JSON
{
  "hex": "#977d1f",
  "rgb": {
    "r": 151,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 47,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59782,
    "c": 0.11161,
    "h": 92.5
  },
  "luminance": 0.21345
}

Semantic roles & 50–950 ramp

primary
#977D1F
secondary
#526ABF
accent
#64E93F
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #977D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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