#977F2E#977F2E

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

Color values

HEX#977F2E
RGBrgb(151, 127, 46)
HSLhsl(46, 53%, 39%)
HSVhsv(46, 70%, 59%)
CMYKcmyk(0%, 15.9%, 69.5%, 40.8%)
CIE-LABlab(53.98, -0.11, 45.73)
CIE-LCHlch(53.98, 45.73, 90.14°)
OKLaboklab(60.33% -0.0042 0.1029)
OKLCHoklch(60.33% 0.103 92.3)
XYZxyz(20.8461, 21.9565, 5.7243)
Luminance0.2195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977F2E #2E4697
analogous
#974A2E #977F2E #7A972E
triadic
#977F2E #2E977F #7F2E97
tetradic
#977F2E #2E974A #2E4697 #972E7A
square
#977F2E #2E974A #2E4697 #972E7A
split-complementary
#977F2E #2E7A97 #4A2E97
monochromatic
#393011 #685820 #977F2E #C4A63E #D2BB6D

Accessibility & contrast

On white

3.90
#977F2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##977F2E#FFFFFF#000000##000000
##977F2E1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #977f2e;
/* rgb */ color: rgb(151, 127, 46);
/* oklch */ color: oklch(60.3% 0.103 92.3);
Tailwind
colors: {
  custom: {
    50: '#b9a36b',
    500: '#977f2e',
    950: '#000000',
  },
}
SCSS
$custom: #977f2e;
$custom-light: #b9a36b;
$custom-dark: #000000;
JSON
{
  "hex": "#977f2e",
  "rgb": {
    "r": 151,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 46.286,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.60331,
    "c": 0.10302,
    "h": 92.3
  },
  "luminance": 0.21955
}

Semantic roles & 50–950 ramp

primary
#977F2E
secondary
#677ABA
accent
#6CDD4B
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #977F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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