#977C23#977C23

#977C23 is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.6% C 0.109 H 91.2°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#977C23
RGBrgb(151, 124, 35)
HSLhsl(46, 62%, 36%)
HSVhsv(46, 77%, 59%)
CMYKcmyk(0%, 17.9%, 76.8%, 40.8%)
CIE-LABlab(53.08, 1.00, 49.45)
CIE-LCHlch(53.08, 49.46, 88.84°)
OKLaboklab(59.59% -0.0023 0.1087)
OKLCHoklch(59.59% 0.109 91.2)
XYZxyz(20.2747, 21.1172, 4.5979)
Luminance0.2112 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977C23 #233E97
analogous
#974223 #977C23 #789723
triadic
#977C23 #23977C #7C2397
tetradic
#977C23 #239742 #233E97 #972378
square
#977C23 #239742 #233E97 #972378
split-complementary
#977C23 #237897 #422397
monochromatic
#342A0C #655317 #977C23 #C9A52F #D9BC5B

Accessibility & contrast

On white

4.02
#977C23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#977C23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977C23
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977C23#FFFFFF#000000##000000
##977C231.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A14
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#A4716B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #977c23;
/* rgb */ color: rgb(151, 124, 35);
/* oklch */ color: oklch(59.6% 0.109 91.2);
Tailwind
colors: {
  custom: {
    50: '#b9a165',
    500: '#977c23',
    950: '#000000',
  },
}
SCSS
$custom: #977c23;
$custom-light: #b9a165;
$custom-dark: #000000;
JSON
{
  "hex": "#977c23",
  "rgb": {
    "r": 151,
    "g": 124,
    "b": 35
  },
  "hsl": {
    "h": 46.034,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.59593,
    "c": 0.10869,
    "h": 91.2
  },
  "luminance": 0.21116
}

Semantic roles & 50–950 ramp

primary
#977C23
secondary
#5870BE
accent
#68E542
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #977C23

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

Preview Lab → · Contrast checker → · Palette generator →

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