#977D1D#977D1D

#977D1D is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.8% C 0.113 H 92.7°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#977D1D
RGBrgb(151, 125, 29)
HSLhsl(47, 68%, 35%)
HSVhsv(47, 81%, 59%)
CMYKcmyk(0%, 17.2%, 80.8%, 40.8%)
CIE-LABlab(53.32, 0.19, 51.88)
CIE-LCHlch(53.32, 51.88, 89.79°)
OKLaboklab(59.77% -0.0053 0.1126)
OKLCHoklch(59.77% 0.113 92.7)
XYZxyz(20.3191, 21.3365, 4.2103)
Luminance0.2134 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977D1D #1D3797
analogous
#97401D #977D1D #74971D
triadic
#977D1D #1D977D #7D1D97
tetradic
#977D1D #1D9740 #1D3797 #971D74
square
#977D1D #1D9740 #1D3797 #971D74
split-complementary
#977D1D #1D7497 #401D97
monochromatic
#302809 #645213 #977D1D #CAA727 #DEC051

Accessibility & contrast

On white

3.99
#977D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#977D1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977D1D
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977D1D#FFFFFF#000000##000000
##977D1D1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B06
Deuteranopia (green-blind)
#928323
Tritanopia (blue-blind)
#A4726B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #977d1d;
/* rgb */ color: rgb(151, 125, 29);
/* oklch */ color: oklch(59.8% 0.113 92.7);
Tailwind
colors: {
  custom: {
    50: '#baa262',
    500: '#977d1d',
    950: '#000000',
  },
}
SCSS
$custom: #977d1d;
$custom-light: #baa262;
$custom-dark: #000000;
JSON
{
  "hex": "#977d1d",
  "rgb": {
    "r": 151,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 47.213,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59769,
    "c": 0.11267,
    "h": 92.7
  },
  "luminance": 0.21335
}

Semantic roles & 50–950 ramp

primary
#977D1D
secondary
#4F67C0
accent
#62EB3D
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F05
muted
#817E7A

Preview Lab

Preview with #977D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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