#977D22#977D22

#977D22 is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.8% C 0.110 H 92.2°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#977D22
RGBrgb(151, 125, 34)
HSLhsl(47, 63%, 36%)
HSVhsv(47, 77%, 59%)
CMYKcmyk(0%, 17.2%, 77.5%, 40.8%)
CIE-LABlab(53.34, 0.40, 50.09)
CIE-LCHlch(53.34, 50.09, 89.55°)
OKLaboklab(59.8% -0.0042 0.1098)
OKLCHoklch(59.8% 0.11 92.2)
XYZxyz(20.3860, 21.3633, 4.5628)
Luminance0.2136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977D22 #223C97
analogous
#974322 #977D22 #779722
triadic
#977D22 #22977D #7D2297
tetradic
#977D22 #229743 #223C97 #972277
square
#977D22 #229743 #223C97 #972277
split-complementary
#977D22 #227797 #432297
monochromatic
#332A0C #655417 #977D22 #C9A62D #DABD5A

Accessibility & contrast

On white

3.98
#977D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#977D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977D22
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977D22#FFFFFF#000000##000000
##977D221.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B11
Deuteranopia (green-blind)
#928327
Tritanopia (blue-blind)
#A4726B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #977d22;
/* rgb */ color: rgb(151, 125, 34);
/* oklch */ color: oklch(59.8% 0.110 92.2);
Tailwind
colors: {
  custom: {
    50: '#b9a264',
    500: '#977d22',
    950: '#000000',
  },
}
SCSS
$custom: #977d22;
$custom-light: #b9a264;
$custom-dark: #000000;
JSON
{
  "hex": "#977d22",
  "rgb": {
    "r": 151,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 46.667,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.59801,
    "c": 0.10989,
    "h": 92.2
  },
  "luminance": 0.21362
}

Semantic roles & 50–950 ramp

primary
#977D22
secondary
#576EBE
accent
#66E642
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #977D22

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

Preview Lab → · Contrast checker → · Palette generator →

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