#997B21#997B21

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

Color values

HEX#997B21
RGBrgb(153, 123, 33)
HSLhsl(45, 65%, 36%)
HSVhsv(45, 78%, 60%)
CMYKcmyk(0%, 19.6%, 78.4%, 40%)
CIE-LABlab(53.00, 2.40, 50.23)
CIE-LCHlch(53.00, 50.28, 87.26°)
OKLaboklab(59.58% 0.0013 0.1098)
OKLCHoklch(59.58% 0.11 89.3)
XYZxyz(20.4956, 21.0494, 4.4220)
Luminance0.2105 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997B21 #213F99
analogous
#993F21 #997B21 #7B9921
triadic
#997B21 #21997B #7B2199
tetradic
#997B21 #21993F #213F99 #99217B
square
#997B21 #21993F #213F99 #99217B
split-complementary
#997B21 #217B99 #3F2199
monochromatic
#342A0B #675316 #997B21 #CBA32C #DBBB59

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##997B21#FFFFFF#000000##000000
##997B211.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)
#8A7A10
Deuteranopia (green-blind)
#918226
Tritanopia (blue-blind)
#A6706A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #997b21;
/* rgb */ color: rgb(153, 123, 33);
/* oklch */ color: oklch(59.6% 0.110 89.3);
Tailwind
colors: {
  custom: {
    50: '#bba064',
    500: '#997b21',
    950: '#000000',
  },
}
SCSS
$custom: #997b21;
$custom-light: #bba064;
$custom-dark: #000000;
JSON
{
  "hex": "#997b21",
  "rgb": {
    "r": 153,
    "g": 123,
    "b": 33
  },
  "hsl": {
    "h": 45,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.59579,
    "c": 0.10979,
    "h": 89.3
  },
  "luminance": 0.21048
}

Semantic roles & 50–950 ramp

primary
#997B21
secondary
#5671BF
accent
#6AE840
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #997B21

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

Preview Lab → · Contrast checker → · Palette generator →

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