#977A23#977A23

#977A23 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 59.2% C 0.108 H 89.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#977A23
RGBrgb(151, 122, 35)
HSLhsl(45, 62%, 36%)
HSVhsv(45, 77%, 59%)
CMYKcmyk(0%, 19.2%, 76.8%, 40.8%)
CIE-LABlab(52.53, 2.13, 48.93)
CIE-LCHlch(52.53, 48.98, 87.51°)
OKLaboklab(59.16% 0.0009 0.1076)
OKLCHoklch(59.16% 0.108 89.5)
XYZxyz(20.0266, 20.6210, 4.5152)
Luminance0.2062 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977A23 #234097
analogous
#974023 #977A23 #7A9723
triadic
#977A23 #23977A #7A2397
tetradic
#977A23 #239740 #234097 #97237A
square
#977A23 #239740 #234097 #97237A
split-complementary
#977A23 #237A97 #402397
monochromatic
#342A0C #655217 #977A23 #C9A22F #D9BA5B

Accessibility & contrast

On white

4.10
#977A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#977A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977A23
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977A23#FFFFFF#000000##000000
##977A231.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#897914
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#A46F69
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #977a23;
/* rgb */ color: rgb(151, 122, 35);
/* oklch */ color: oklch(59.2% 0.108 89.5);
Tailwind
colors: {
  custom: {
    50: '#b9a065',
    500: '#977a23',
    950: '#000000',
  },
}
SCSS
$custom: #977a23;
$custom-light: #b9a065;
$custom-dark: #000000;
JSON
{
  "hex": "#977a23",
  "rgb": {
    "r": 151,
    "g": 122,
    "b": 35
  },
  "hsl": {
    "h": 45,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.59163,
    "c": 0.10755,
    "h": 89.5
  },
  "luminance": 0.2062
}

Semantic roles & 50–950 ramp

primary
#977A23
secondary
#5872BE
accent
#6BE542
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #977A23

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

Preview Lab → · Contrast checker → · Palette generator →

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