#977B23#977B23

#977B23 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.4% C 0.108 H 90.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#977B23
RGBrgb(151, 123, 35)
HSLhsl(46, 62%, 36%)
HSVhsv(46, 77%, 59%)
CMYKcmyk(0%, 18.5%, 76.8%, 40.8%)
CIE-LABlab(52.80, 1.57, 49.19)
CIE-LCHlch(52.80, 49.22, 88.18°)
OKLaboklab(59.38% -0.0007 0.1081)
OKLCHoklch(59.38% 0.108 90.4)
XYZxyz(20.1500, 20.8678, 4.5564)
Luminance0.2087 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977B23 #233F97
analogous
#974123 #977B23 #799723
triadic
#977B23 #23977B #7B2397
tetradic
#977B23 #239741 #233F97 #972379
square
#977B23 #239741 #233F97 #972379
split-complementary
#977B23 #237997 #412397
monochromatic
#342A0C #655317 #977B23 #C9A32F #D9BB5B

Accessibility & contrast

On white

4.06
#977B23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#977B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977B23
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977B23#FFFFFF#000000##000000
##977B231.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7914
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#A4706A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #977b23;
/* rgb */ color: rgb(151, 123, 35);
/* oklch */ color: oklch(59.4% 0.108 90.4);
Tailwind
colors: {
  custom: {
    50: '#b9a065',
    500: '#977b23',
    950: '#000000',
  },
}
SCSS
$custom: #977b23;
$custom-light: #b9a065;
$custom-dark: #000000;
JSON
{
  "hex": "#977b23",
  "rgb": {
    "r": 151,
    "g": 123,
    "b": 35
  },
  "hsl": {
    "h": 45.517,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.59377,
    "c": 0.1081,
    "h": 90.4
  },
  "luminance": 0.20867
}

Semantic roles & 50–950 ramp

primary
#977B23
secondary
#5871BE
accent
#6AE542
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #977B23

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

Preview Lab → · Contrast checker → · Palette generator →

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