#977F1B#977F1B

#977F1B is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 60.2% C 0.115 H 94.4°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#977F1B
RGBrgb(151, 127, 27)
HSLhsl(48, 70%, 35%)
HSVhsv(48, 82%, 59%)
CMYKcmyk(0%, 15.9%, 82.1%, 40.8%)
CIE-LABlab(53.86, -1.00, 53.03)
CIE-LCHlch(53.86, 53.04, 91.08°)
OKLaboklab(60.19% -0.0089 0.1146)
OKLCHoklch(60.19% 0.115 94.4)
XYZxyz(20.5509, 21.8384, 4.1695)
Luminance0.2184 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977F1B #1B3397
analogous
#97411B #977F1B #71971B
triadic
#977F1B #1B977F #7F1B97
tetradic
#977F1B #1B9741 #1B3397 #971B71
square
#977F1B #1B9741 #1B3397 #971B71
split-complementary
#977F1B #1B7197 #411B97
monochromatic
#2F2808 #635312 #977F1B #CBAB24 #DFC34D

Accessibility & contrast

On white

3.91
#977F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#977F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977F1B
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977F1B#FFFFFF#000000##000000
##977F1B1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D00
Deuteranopia (green-blind)
#938422
Tritanopia (blue-blind)
#A4746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #977f1b;
/* rgb */ color: rgb(151, 127, 27);
/* oklch */ color: oklch(60.2% 0.115 94.4);
Tailwind
colors: {
  custom: {
    50: '#baa361',
    500: '#977f1b',
    950: '#000000',
  },
}
SCSS
$custom: #977f1b;
$custom-light: #baa361;
$custom-dark: #000000;
JSON
{
  "hex": "#977f1b",
  "rgb": {
    "r": 151,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 48.387,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60192,
    "c": 0.11494,
    "h": 94.4
  },
  "luminance": 0.21837
}

Semantic roles & 50–950 ramp

primary
#977F1B
secondary
#4C63C1
accent
#5EEC3B
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #977F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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