#977D20#977D20

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

Color values

HEX#977D20
RGBrgb(151, 125, 32)
HSLhsl(47, 65%, 36%)
HSVhsv(47, 79%, 59%)
CMYKcmyk(0%, 17.2%, 78.8%, 40.8%)
CIE-LABlab(53.33, 0.31, 50.83)
CIE-LCHlch(53.33, 50.83, 89.65°)
OKLaboklab(59.79% -0.0046 0.111)
OKLCHoklch(59.79% 0.111 92.4)
XYZxyz(20.3580, 21.3521, 4.4153)
Luminance0.2135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977D20 #203A97
analogous
#974120 #977D20 #759720
triadic
#977D20 #20977D #7D2097
tetradic
#977D20 #209741 #203A97 #972075
square
#977D20 #209741 #203A97 #972075
split-complementary
#977D20 #207597 #412097
monochromatic
#32290B #645315 #977D20 #C9A72B #DBBE56

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##977D20#FFFFFF#000000##000000
##977D201.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)
#8B7B0D
Deuteranopia (green-blind)
#928326
Tritanopia (blue-blind)
#A4726B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #977d20;
/* rgb */ color: rgb(151, 125, 32);
/* oklch */ color: oklch(59.8% 0.111 92.4);
Tailwind
colors: {
  custom: {
    50: '#baa263',
    500: '#977d20',
    950: '#000000',
  },
}
SCSS
$custom: #977d20;
$custom-light: #baa263;
$custom-dark: #000000;
JSON
{
  "hex": "#977d20",
  "rgb": {
    "r": 151,
    "g": 125,
    "b": 32
  },
  "hsl": {
    "h": 46.891,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59788,
    "c": 0.11105,
    "h": 92.4
  },
  "luminance": 0.21351
}

Semantic roles & 50–950 ramp

primary
#977D20
secondary
#546BBF
accent
#65E840
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #977D20

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

Preview Lab → · Contrast checker → · Palette generator →

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