#977E2F#977E2F

#977E2F is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.1% C 0.102 H 91.3°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#977E2F
RGBrgb(151, 126, 47)
HSLhsl(46, 53%, 39%)
HSVhsv(46, 69%, 59%)
CMYKcmyk(0%, 16.6%, 68.9%, 40.8%)
CIE-LABlab(53.72, 0.51, 45.01)
CIE-LCHlch(53.72, 45.01, 89.35°)
OKLaboklab(60.12% -0.0023 0.1016)
OKLCHoklch(60.12% 0.102 91.3)
XYZxyz(20.7375, 21.7074, 5.7864)
Luminance0.2171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977E2F #2F4897
analogous
#974A2F #977E2F #7C972F
triadic
#977E2F #2F977E #7E2F97
tetradic
#977E2F #2F974A #2F4897 #972F7C
square
#977E2F #2F974A #2F4897 #972F7C
split-complementary
#977E2F #2F7C97 #4A2F97
monochromatic
#3A3012 #685720 #977E2F #C3A440 #D2BA6E

Accessibility & contrast

On white

3.93
#977E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#977E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977E2F
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977E2F#FFFFFF#000000##000000
##977E2F1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C25
Deuteranopia (green-blind)
#928333
Tritanopia (blue-blind)
#A3746D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #977e2f;
/* rgb */ color: rgb(151, 126, 47);
/* oklch */ color: oklch(60.1% 0.102 91.3);
Tailwind
colors: {
  custom: {
    50: '#b9a36c',
    500: '#977e2f',
    950: '#000000',
  },
}
SCSS
$custom: #977e2f;
$custom-light: #b9a36c;
$custom-dark: #000000;
JSON
{
  "hex": "#977e2f",
  "rgb": {
    "r": 151,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 45.577,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.60125,
    "c": 0.10159,
    "h": 91.3
  },
  "luminance": 0.21706
}

Semantic roles & 50–950 ramp

primary
#977E2F
secondary
#687CB9
accent
#6EDC4C
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F07
muted
#817E7A

Preview Lab

Preview with #977E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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