#977B1C#977B1C

#977B1C is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.3% C 0.112 H 91.2°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#977B1C
RGBrgb(151, 123, 28)
HSLhsl(46, 69%, 35%)
HSVhsv(46, 81%, 59%)
CMYKcmyk(0%, 18.5%, 81.5%, 40.8%)
CIE-LABlab(52.76, 1.28, 51.73)
CIE-LCHlch(52.76, 51.74, 88.58°)
OKLaboklab(59.33% -0.0023 0.112)
OKLCHoklch(59.33% 0.112 91.2)
XYZxyz(20.0563, 20.8303, 4.0627)
Luminance0.2083 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977B1C #1C3897
analogous
#973D1C #977B1C #76971C
triadic
#977B1C #1C977B #7B1C97
tetradic
#977B1C #1C973D #1C3897 #971C76
square
#977B1C #1C973D #1C3897 #971C76
split-complementary
#977B1C #1C7697 #3D1C97
monochromatic
#302709 #635112 #977B1C #CBA526 #DEBE4F

Accessibility & contrast

On white

4.07
#977B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##977B1C#FFFFFF#000000##000000
##977B1C1.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7905
Deuteranopia (green-blind)
#918122
Tritanopia (blue-blind)
#A47069
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #977b1c;
/* rgb */ color: rgb(151, 123, 28);
/* oklch */ color: oklch(59.3% 0.112 91.2);
Tailwind
colors: {
  custom: {
    50: '#baa061',
    500: '#977b1c',
    950: '#000000',
  },
}
SCSS
$custom: #977b1c;
$custom-light: #baa061;
$custom-dark: #000000;
JSON
{
  "hex": "#977b1c",
  "rgb": {
    "r": 151,
    "g": 123,
    "b": 28
  },
  "hsl": {
    "h": 46.341,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59332,
    "c": 0.11202,
    "h": 91.2
  },
  "luminance": 0.20829
}

Semantic roles & 50–950 ramp

primary
#977B1C
secondary
#4E68C1
accent
#64EC3C
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #977B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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