#977B22#977B22

#977B22 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.4% C 0.109 H 90.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#977B22
RGBrgb(151, 123, 34)
HSLhsl(46, 63%, 36%)
HSVhsv(46, 77%, 59%)
CMYKcmyk(0%, 18.5%, 77.5%, 40.8%)
CIE-LABlab(52.80, 1.52, 49.58)
CIE-LCHlch(52.80, 49.60, 88.24°)
OKLaboklab(59.37% -0.001 0.1087)
OKLCHoklch(59.37% 0.109 90.5)
XYZxyz(20.1354, 20.8620, 4.4793)
Luminance0.2086 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977B22 #223E97
analogous
#974122 #977B22 #799722
triadic
#977B22 #22977B #7B2297
tetradic
#977B22 #229741 #223E97 #972279
square
#977B22 #229741 #223E97 #972279
split-complementary
#977B22 #227997 #412297
monochromatic
#332A0C #655217 #977B22 #C9A42D #DABB5A

Accessibility & contrast

On white

4.06
#977B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#977B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977B22
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977B22#FFFFFF#000000##000000
##977B221.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7912
Deuteranopia (green-blind)
#908127
Tritanopia (blue-blind)
#A4706A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #977b22;
/* rgb */ color: rgb(151, 123, 34);
/* oklch */ color: oklch(59.4% 0.109 90.5);
Tailwind
colors: {
  custom: {
    50: '#baa064',
    500: '#977b22',
    950: '#000000',
  },
}
SCSS
$custom: #977b22;
$custom-light: #baa064;
$custom-dark: #000000;
JSON
{
  "hex": "#977b22",
  "rgb": {
    "r": 151,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 45.641,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.5937,
    "c": 0.10871,
    "h": 90.5
  },
  "luminance": 0.20861
}

Semantic roles & 50–950 ramp

primary
#977B22
secondary
#576FBE
accent
#69E642
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #977B22

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

Preview Lab → · Contrast checker → · Palette generator →

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