#977F1D#977F1D

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

Color values

HEX#977F1D
RGBrgb(151, 127, 29)
HSLhsl(48, 68%, 35%)
HSVhsv(48, 81%, 59%)
CMYKcmyk(0%, 15.9%, 80.8%, 40.8%)
CIE-LABlab(53.87, -0.93, 52.37)
CIE-LCHlch(53.87, 52.38, 91.01°)
OKLaboklab(60.2% -0.0085 0.1136)
OKLCHoklch(60.2% 0.114 94.3)
XYZxyz(20.5748, 21.8480, 4.2955)
Luminance0.2185 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977F1D #1D3597
analogous
#97421D #977F1D #72971D
triadic
#977F1D #1D977F #7F1D97
tetradic
#977F1D #1D9742 #1D3597 #971D72
square
#977F1D #1D9742 #1D3597 #971D72
split-complementary
#977F1D #1D7297 #421D97
monochromatic
#302909 #645413 #977F1D #CAAA27 #DEC251

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##977F1D#FFFFFF#000000##000000
##977F1D1.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)
#8D7D05
Deuteranopia (green-blind)
#938424
Tritanopia (blue-blind)
#A4746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #977f1d;
/* rgb */ color: rgb(151, 127, 29);
/* oklch */ color: oklch(60.2% 0.114 94.3);
Tailwind
colors: {
  custom: {
    50: '#baa362',
    500: '#977f1d',
    950: '#000000',
  },
}
SCSS
$custom: #977f1d;
$custom-light: #baa362;
$custom-dark: #000000;
JSON
{
  "hex": "#977f1d",
  "rgb": {
    "r": 151,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 48.197,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60203,
    "c": 0.11394,
    "h": 94.3
  },
  "luminance": 0.21847
}

Semantic roles & 50–950 ramp

primary
#977F1D
secondary
#4F66C0
accent
#5FEB3D
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #977F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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