#977B1A#977B1A

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

Color values

HEX#977B1A
RGBrgb(151, 123, 26)
HSLhsl(47, 71%, 35%)
HSVhsv(47, 83%, 59%)
CMYKcmyk(0%, 18.5%, 82.8%, 40.8%)
CIE-LABlab(52.75, 1.21, 52.38)
CIE-LCHlch(52.75, 52.40, 88.68°)
OKLaboklab(59.32% -0.0027 0.113)
OKLCHoklch(59.32% 0.113 91.4)
XYZxyz(20.0331, 20.8211, 3.9408)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977B1A #1A3697
analogous
#973D1A #977B1A #75971A
triadic
#977B1A #1A977B #7B1A97
tetradic
#977B1A #1A973D #1A3697 #971A75
square
#977B1A #1A973D #1A3697 #971A75
split-complementary
#977B1A #1A7597 #3D1A97
monochromatic
#2F2608 #635011 #977B1A #CBA623 #E0BF4B

Accessibility & contrast

On white

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

On black

5.16
#977B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977B1A
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977B1A#FFFFFF#000000##000000
##977B1A1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #977b1a;
/* rgb */ color: rgb(151, 123, 26);
/* oklch */ color: oklch(59.3% 0.113 91.4);
Tailwind
colors: {
  custom: {
    50: '#baa060',
    500: '#977b1a',
    950: '#000000',
  },
}
SCSS
$custom: #977b1a;
$custom-light: #baa060;
$custom-dark: #000000;
JSON
{
  "hex": "#977b1a",
  "rgb": {
    "r": 151,
    "g": 123,
    "b": 26
  },
  "hsl": {
    "h": 46.56,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.5932,
    "c": 0.11301,
    "h": 91.4
  },
  "luminance": 0.2082
}

Semantic roles & 50–950 ramp

primary
#977B1A
secondary
#4B65C2
accent
#63ED3A
background
#FCF9F5
surface
#F8F2EA
border
#D1CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #977B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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