#977F2F#977F2F

#977F2F is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.3% C 0.102 H 92.2°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#977F2F
RGBrgb(151, 127, 47)
HSLhsl(46, 53%, 39%)
HSVhsv(46, 69%, 59%)
CMYKcmyk(0%, 15.9%, 68.9%, 40.8%)
CIE-LABlab(53.99, -0.05, 45.29)
CIE-LCHlch(53.99, 45.29, 90.06°)
OKLaboklab(60.34% -0.0039 0.1022)
OKLCHoklch(60.34% 0.102 92.2)
XYZxyz(20.8660, 21.9645, 5.8293)
Luminance0.2196 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977F2F #2F4797
analogous
#974B2F #977F2F #7B972F
triadic
#977F2F #2F977F #7F2F97
tetradic
#977F2F #2F974B #2F4797 #972F7B
square
#977F2F #2F974B #2F4797 #972F7B
split-complementary
#977F2F #2F7B97 #4B2F97
monochromatic
#3A3012 #685820 #977F2F #C3A540 #D2BB6E

Accessibility & contrast

On white

3.89
#977F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#977F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977F2F
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977F2F#FFFFFF#000000##000000
##977F2F1.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D25
Deuteranopia (green-blind)
#938433
Tritanopia (blue-blind)
#A3756E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #977f2f;
/* rgb */ color: rgb(151, 127, 47);
/* oklch */ color: oklch(60.3% 0.102 92.2);
Tailwind
colors: {
  custom: {
    50: '#b9a36c',
    500: '#977f2f',
    950: '#000000',
  },
}
SCSS
$custom: #977f2f;
$custom-light: #b9a36c;
$custom-dark: #000000;
JSON
{
  "hex": "#977f2f",
  "rgb": {
    "r": 151,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 46.154,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.60341,
    "c": 0.10225,
    "h": 92.2
  },
  "luminance": 0.21963
}

Semantic roles & 50–950 ramp

primary
#977F2F
secondary
#687BB9
accent
#6DDC4C
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #977F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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