#977A1F#977A1F

#977A1F is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 59.1% C 0.110 H 90.0°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#977A1F
RGBrgb(151, 122, 31)
HSLhsl(46, 66%, 36%)
HSVhsv(46, 79%, 59%)
CMYKcmyk(0%, 19.2%, 79.5%, 40.8%)
CIE-LABlab(52.51, 1.96, 50.43)
CIE-LCHlch(52.51, 50.47, 87.78°)
OKLaboklab(59.14% -0.0001 0.1099)
OKLCHoklch(59.14% 0.11 90)
XYZxyz(19.9705, 20.5986, 4.2201)
Luminance0.2060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977A1F #1F3C97
analogous
#973E1F #977A1F #78971F
triadic
#977A1F #1F977A #7A1F97
tetradic
#977A1F #1F973E #1F3C97 #971F78
square
#977A1F #1F973E #1F3C97 #971F78
split-complementary
#977A1F #1F7897 #3E1F97
monochromatic
#31280A #645115 #977A1F #CAA329 #DCBB54

Accessibility & contrast

On white

4.10
#977A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#977A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977A1F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977A1F#FFFFFF#000000##000000
##977A1F1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790D
Deuteranopia (green-blind)
#908124
Tritanopia (blue-blind)
#A46F69
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #977a1f;
/* rgb */ color: rgb(151, 122, 31);
/* oklch */ color: oklch(59.1% 0.110 90.0);
Tailwind
colors: {
  custom: {
    50: '#baa063',
    500: '#977a1f',
    950: '#000000',
  },
}
SCSS
$custom: #977a1f;
$custom-light: #baa063;
$custom-dark: #000000;
JSON
{
  "hex": "#977a1f",
  "rgb": {
    "r": 151,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 45.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59135,
    "c": 0.10988,
    "h": 90
  },
  "luminance": 0.20597
}

Semantic roles & 50–950 ramp

primary
#977A1F
secondary
#526DBF
accent
#68E93F
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #977A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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