#977F2C#977F2C

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

Color values

HEX#977F2C
RGBrgb(151, 127, 44)
HSLhsl(47, 55%, 38%)
HSVhsv(47, 71%, 59%)
CMYKcmyk(0%, 15.9%, 70.9%, 40.8%)
CIE-LABlab(53.96, -0.23, 46.60)
CIE-LCHlch(53.96, 46.60, 90.28°)
OKLaboklab(60.31% -0.0048 0.1044)
OKLCHoklch(60.31% 0.105 92.6)
XYZxyz(20.8076, 21.9411, 5.5215)
Luminance0.2194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977F2C #2C4497
analogous
#97492C #977F2C #79972C
triadic
#977F2C #2C977F #7F2C97
tetradic
#977F2C #2C9749 #2C4497 #972C79
square
#977F2C #2C9749 #2C4497 #972C79
split-complementary
#977F2C #2C7997 #492C97
monochromatic
#382F10 #68571E #977F2C #C6A63A #D4BC6A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##977F2C#FFFFFF#000000##000000
##977F2C1.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)
#8D7D21
Deuteranopia (green-blind)
#938430
Tritanopia (blue-blind)
#A3756E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #977f2c;
/* rgb */ color: rgb(151, 127, 44);
/* oklch */ color: oklch(60.3% 0.105 92.6);
Tailwind
colors: {
  custom: {
    50: '#b9a36a',
    500: '#977f2c',
    950: '#000000',
  },
}
SCSS
$custom: #977f2c;
$custom-light: #b9a36a;
$custom-dark: #000000;
JSON
{
  "hex": "#977f2c",
  "rgb": {
    "r": 151,
    "g": 127,
    "b": 44
  },
  "hsl": {
    "h": 46.542,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.60313,
    "c": 0.10451,
    "h": 92.6
  },
  "luminance": 0.2194
}

Semantic roles & 50–950 ramp

primary
#977F2C
secondary
#6578BA
accent
#6BDE4A
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #977F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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