#977F20#977F20

#977F20 is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 60.2% C 0.112 H 94.0°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#977F20
RGBrgb(151, 127, 32)
HSLhsl(48, 65%, 36%)
HSVhsv(48, 79%, 59%)
CMYKcmyk(0%, 15.9%, 78.8%, 40.8%)
CIE-LABlab(53.88, -0.81, 51.34)
CIE-LCHlch(53.88, 51.34, 90.90°)
OKLaboklab(60.22% -0.0078 0.112)
OKLCHoklch(60.22% 0.112 94)
XYZxyz(20.6137, 21.8635, 4.5005)
Luminance0.2186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977F20 #203897
analogous
#974320 #977F20 #739720
triadic
#977F20 #20977F #7F2097
tetradic
#977F20 #209743 #203897 #972073
square
#977F20 #209743 #203897 #972073
split-complementary
#977F20 #207397 #432097
monochromatic
#322A0B #645515 #977F20 #C9A92B #DBC056

Accessibility & contrast

On white

3.91
#977F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#977F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977F20
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977F20#FFFFFF#000000##000000
##977F201.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D0C
Deuteranopia (green-blind)
#938426
Tritanopia (blue-blind)
#A4746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #977f20;
/* rgb */ color: rgb(151, 127, 32);
/* oklch */ color: oklch(60.2% 0.112 94.0);
Tailwind
colors: {
  custom: {
    50: '#b9a364',
    500: '#977f20',
    950: '#000000',
  },
}
SCSS
$custom: #977f20;
$custom-light: #b9a364;
$custom-dark: #000000;
JSON
{
  "hex": "#977f20",
  "rgb": {
    "r": 151,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 47.899,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60222,
    "c": 0.11231,
    "h": 94
  },
  "luminance": 0.21862
}

Semantic roles & 50–950 ramp

primary
#977F20
secondary
#5469BF
accent
#62E840
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #977F20

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

Preview Lab → · Contrast checker → · Palette generator →

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