#997B1D#997B1D

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

Color values

HEX#997B1D
RGBrgb(153, 123, 29)
HSLhsl(45, 68%, 36%)
HSVhsv(45, 81%, 60%)
CMYKcmyk(0%, 19.6%, 81%, 40%)
CIE-LABlab(52.98, 2.24, 51.66)
CIE-LCHlch(52.98, 51.70, 87.51°)
OKLaboklab(59.55% 0.0004 0.112)
OKLCHoklch(59.55% 0.112 89.8)
XYZxyz(20.4428, 21.0283, 4.1443)
Luminance0.2103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997B1D #1D3B99
analogous
#993D1D #997B1D #79991D
triadic
#997B1D #1D997B #7B1D99
tetradic
#997B1D #1D993D #1D3B99 #991D79
square
#997B1D #1D993D #1D3B99 #991D79
split-complementary
#997B1D #1D7999 #3D1D99
monochromatic
#322809 #665213 #997B1D #CCA427 #DEBC52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##997B1D#FFFFFF#000000##000000
##997B1D1.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)
#8A7A07
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#A67069
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #997b1d;
/* rgb */ color: rgb(153, 123, 29);
/* oklch */ color: oklch(59.6% 0.112 89.8);
Tailwind
colors: {
  custom: {
    50: '#bba062',
    500: '#997b1d',
    950: '#000000',
  },
}
SCSS
$custom: #997b1d;
$custom-light: #bba062;
$custom-dark: #000000;
JSON
{
  "hex": "#997b1d",
  "rgb": {
    "r": 153,
    "g": 123,
    "b": 29
  },
  "hsl": {
    "h": 45.484,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59553,
    "c": 0.11196,
    "h": 89.8
  },
  "luminance": 0.21027
}

Semantic roles & 50–950 ramp

primary
#997B1D
secondary
#516CC1
accent
#67EB3D
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #997B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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