#977D23#977D23

#977D23 is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.8% C 0.109 H 92.1°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#977D23
RGBrgb(151, 125, 35)
HSLhsl(47, 62%, 36%)
HSVhsv(47, 77%, 59%)
CMYKcmyk(0%, 17.2%, 76.8%, 40.8%)
CIE-LABlab(53.35, 0.44, 49.71)
CIE-LCHlch(53.35, 49.72, 89.49°)
OKLaboklab(59.81% -0.004 0.1092)
OKLCHoklch(59.81% 0.109 92.1)
XYZxyz(20.4006, 21.3691, 4.6399)
Luminance0.2137 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977D23 #233D97
analogous
#974323 #977D23 #779723
triadic
#977D23 #23977D #7D2397
tetradic
#977D23 #239743 #233D97 #972377
square
#977D23 #239743 #233D97 #972377
split-complementary
#977D23 #237797 #432397
monochromatic
#342B0C #655417 #977D23 #C9A62F #D9BD5B

Accessibility & contrast

On white

3.98
#977D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#977D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977D23
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977D23#FFFFFF#000000##000000
##977D231.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B13
Deuteranopia (green-blind)
#928328
Tritanopia (blue-blind)
#A4726B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #977d23;
/* rgb */ color: rgb(151, 125, 35);
/* oklch */ color: oklch(59.8% 0.109 92.1);
Tailwind
colors: {
  custom: {
    50: '#b9a265',
    500: '#977d23',
    950: '#000000',
  },
}
SCSS
$custom: #977d23;
$custom-light: #b9a265;
$custom-dark: #000000;
JSON
{
  "hex": "#977d23",
  "rgb": {
    "r": 151,
    "g": 125,
    "b": 35
  },
  "hsl": {
    "h": 46.552,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.59808,
    "c": 0.10928,
    "h": 92.1
  },
  "luminance": 0.21368
}

Semantic roles & 50–950 ramp

primary
#977D23
secondary
#586FBE
accent
#67E542
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #977D23

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

Preview Lab → · Contrast checker → · Palette generator →

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