#997B20#997B20

#997B20 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.6% C 0.110 H 89.4°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#997B20
RGBrgb(153, 123, 32)
HSLhsl(45, 65%, 36%)
HSVhsv(45, 79%, 60%)
CMYKcmyk(0%, 19.6%, 79.1%, 40%)
CIE-LABlab(53.00, 2.36, 50.59)
CIE-LCHlch(53.00, 50.65, 87.33°)
OKLaboklab(59.57% 0.0011 0.1104)
OKLCHoklch(59.57% 0.11 89.4)
XYZxyz(20.4818, 21.0438, 4.3493)
Luminance0.2104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997B20 #203E99
analogous
#993F20 #997B20 #7B9920
triadic
#997B20 #20997B #7B2099
tetradic
#997B20 #20993F #203E99 #99207B
square
#997B20 #20993F #203E99 #99207B
split-complementary
#997B20 #207B99 #3F2099
monochromatic
#342A0B #665215 #997B20 #CCA42B #DCBB57

Accessibility & contrast

On white

4.03
#997B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#997B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997B20
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997B20#FFFFFF#000000##000000
##997B201.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0E
Deuteranopia (green-blind)
#918225
Tritanopia (blue-blind)
#A6706A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #997b20;
/* rgb */ color: rgb(153, 123, 32);
/* oklch */ color: oklch(59.6% 0.110 89.4);
Tailwind
colors: {
  custom: {
    50: '#bba063',
    500: '#997b20',
    950: '#000000',
  },
}
SCSS
$custom: #997b20;
$custom-light: #bba063;
$custom-dark: #000000;
JSON
{
  "hex": "#997b20",
  "rgb": {
    "r": 153,
    "g": 123,
    "b": 32
  },
  "hsl": {
    "h": 45.124,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.59572,
    "c": 0.11036,
    "h": 89.4
  },
  "luminance": 0.21043
}

Semantic roles & 50–950 ramp

primary
#997B20
secondary
#556FC0
accent
#69E83F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #997B20

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

Preview Lab → · Contrast checker → · Palette generator →

#997B20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva