#977A20#977A20

#977A20 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 59.1% C 0.109 H 89.9°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#977A20
RGBrgb(151, 122, 32)
HSLhsl(45, 65%, 36%)
HSVhsv(45, 79%, 59%)
CMYKcmyk(0%, 19.2%, 78.8%, 40.8%)
CIE-LABlab(52.51, 2.00, 50.07)
CIE-LCHlch(52.51, 50.11, 87.71°)
OKLaboklab(59.14% 0.0002 0.1093)
OKLCHoklch(59.14% 0.109 89.9)
XYZxyz(19.9839, 20.6040, 4.2906)
Luminance0.2060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977A20 #203D97
analogous
#973E20 #977A20 #789720
triadic
#977A20 #20977A #7A2097
tetradic
#977A20 #20973E #203D97 #972078
square
#977A20 #20973E #203D97 #972078
split-complementary
#977A20 #207897 #3E2097
monochromatic
#32280B #645115 #977A20 #C9A32B #DBBB56

Accessibility & contrast

On white

4.10
#977A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#977A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977A20
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977A20#FFFFFF#000000##000000
##977A201.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790F
Deuteranopia (green-blind)
#908125
Tritanopia (blue-blind)
#A46F69
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #977a20;
/* rgb */ color: rgb(151, 122, 32);
/* oklch */ color: oklch(59.1% 0.109 89.9);
Tailwind
colors: {
  custom: {
    50: '#baa063',
    500: '#977a20',
    950: '#000000',
  },
}
SCSS
$custom: #977a20;
$custom-light: #baa063;
$custom-dark: #000000;
JSON
{
  "hex": "#977a20",
  "rgb": {
    "r": 151,
    "g": 122,
    "b": 32
  },
  "hsl": {
    "h": 45.378,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59142,
    "c": 0.10932,
    "h": 89.9
  },
  "luminance": 0.20603
}

Semantic roles & 50–950 ramp

primary
#977A20
secondary
#546EBF
accent
#69E840
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #977A20

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

Preview Lab → · Contrast checker → · Palette generator →

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