#977F22#977F22

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

Color values

HEX#977F22
RGBrgb(151, 127, 34)
HSLhsl(48, 63%, 36%)
HSVhsv(48, 77%, 59%)
CMYKcmyk(0%, 15.9%, 77.5%, 40.8%)
CIE-LABlab(53.89, -0.72, 50.61)
CIE-LCHlch(53.89, 50.61, 90.82°)
OKLaboklab(60.24% -0.0074 0.1109)
OKLCHoklch(60.24% 0.111 93.8)
XYZxyz(20.6417, 21.8747, 4.6481)
Luminance0.2187 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977F22 #223A97
analogous
#974522 #977F22 #759722
triadic
#977F22 #22977F #7F2297
tetradic
#977F22 #229745 #223A97 #972275
square
#977F22 #229745 #223A97 #972275
split-complementary
#977F22 #227597 #452297
monochromatic
#332B0C #655517 #977F22 #C9A92D #DABF5A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##977F22#FFFFFF#000000##000000
##977F221.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)
#8D7D11
Deuteranopia (green-blind)
#938428
Tritanopia (blue-blind)
#A4746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #977f22;
/* rgb */ color: rgb(151, 127, 34);
/* oklch */ color: oklch(60.2% 0.111 93.8);
Tailwind
colors: {
  custom: {
    50: '#b9a365',
    500: '#977f22',
    950: '#000000',
  },
}
SCSS
$custom: #977f22;
$custom-light: #b9a365;
$custom-dark: #000000;
JSON
{
  "hex": "#977f22",
  "rgb": {
    "r": 151,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 47.692,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60235,
    "c": 0.11116,
    "h": 93.8
  },
  "luminance": 0.21874
}

Semantic roles & 50–950 ramp

primary
#977F22
secondary
#576CBE
accent
#63E642
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #977F22

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

Preview Lab → · Contrast checker → · Palette generator →

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