#977E1F#977E1F

#977E1F is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 60.0% C 0.112 H 93.3°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#977E1F
RGBrgb(151, 126, 31)
HSLhsl(48, 66%, 36%)
HSVhsv(48, 79%, 59%)
CMYKcmyk(0%, 16.6%, 79.5%, 40.8%)
CIE-LABlab(53.60, -0.29, 51.44)
CIE-LCHlch(53.60, 51.44, 90.32°)
OKLaboklab(60% -0.0065 0.112)
OKLCHoklch(60% 0.112 93.3)
XYZxyz(20.4718, 21.6012, 4.3872)
Luminance0.2160 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977E1F #1F3897
analogous
#97421F #977E1F #74971F
triadic
#977E1F #1F977E #7E1F97
tetradic
#977E1F #1F9742 #1F3897 #971F74
square
#977E1F #1F9742 #1F3897 #971F74
split-complementary
#977E1F #1F7497 #421F97
monochromatic
#31290A #645415 #977E1F #CAA829 #DCC054

Accessibility & contrast

On white

3.95
#977E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#977E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977E1F
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977E1F#FFFFFF#000000##000000
##977E1F1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C0A
Deuteranopia (green-blind)
#938325
Tritanopia (blue-blind)
#A4736C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #977e1f;
/* rgb */ color: rgb(151, 126, 31);
/* oklch */ color: oklch(60.0% 0.112 93.3);
Tailwind
colors: {
  custom: {
    50: '#baa363',
    500: '#977e1f',
    950: '#000000',
  },
}
SCSS
$custom: #977e1f;
$custom-light: #baa363;
$custom-dark: #000000;
JSON
{
  "hex": "#977e1f",
  "rgb": {
    "r": 151,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 47.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59998,
    "c": 0.11223,
    "h": 93.3
  },
  "luminance": 0.216
}

Semantic roles & 50–950 ramp

primary
#977E1F
secondary
#5269BF
accent
#62E93F
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #977E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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