#977E1B#977E1B

#977E1B is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 60.0% C 0.114 H 93.7°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#977E1B
RGBrgb(151, 126, 27)
HSLhsl(48, 70%, 35%)
HSVhsv(48, 82%, 59%)
CMYKcmyk(0%, 16.6%, 82.1%, 40.8%)
CIE-LABlab(53.58, -0.44, 52.78)
CIE-LCHlch(53.58, 52.79, 90.48°)
OKLaboklab(59.98% -0.0073 0.1141)
OKLCHoklch(59.98% 0.114 93.7)
XYZxyz(20.4224, 21.5814, 4.1267)
Luminance0.2158 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977E1B #1B3497
analogous
#97401B #977E1B #72971B
triadic
#977E1B #1B977E #7E1B97
tetradic
#977E1B #1B9740 #1B3497 #971B72
square
#977E1B #1B9740 #1B3497 #971B72
split-complementary
#977E1B #1B7297 #401B97
monochromatic
#2F2708 #635312 #977E1B #CBA924 #DFC24D

Accessibility & contrast

On white

3.95
#977E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#977E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977E1B
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977E1B#FFFFFF#000000##000000
##977E1B1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C01
Deuteranopia (green-blind)
#938322
Tritanopia (blue-blind)
#A4736C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #977e1b;
/* rgb */ color: rgb(151, 126, 27);
/* oklch */ color: oklch(60.0% 0.114 93.7);
Tailwind
colors: {
  custom: {
    50: '#baa361',
    500: '#977e1b',
    950: '#000000',
  },
}
SCSS
$custom: #977e1b;
$custom-light: #baa361;
$custom-dark: #000000;
JSON
{
  "hex": "#977e1b",
  "rgb": {
    "r": 151,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 47.903,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59975,
    "c": 0.1143,
    "h": 93.7
  },
  "luminance": 0.2158
}

Semantic roles & 50–950 ramp

primary
#977E1B
secondary
#4C64C1
accent
#5FEC3B
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F05
muted
#817E7A

Preview Lab

Preview with #977E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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