#997D1F#997D1F

#997D1F is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 60.0% C 0.112 H 91.2°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#997D1F
RGBrgb(153, 125, 31)
HSLhsl(46, 66%, 36%)
HSVhsv(46, 80%, 60%)
CMYKcmyk(0%, 18.3%, 79.7%, 40%)
CIE-LABlab(53.54, 1.20, 51.45)
CIE-LCHlch(53.54, 51.47, 88.67°)
OKLaboklab(59.99% -0.0023 0.112)
OKLCHoklch(59.99% 0.112 91.2)
XYZxyz(20.7190, 21.5398, 4.3624)
Luminance0.2154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997D1F #1F3B99
analogous
#99401F #997D1F #78991F
triadic
#997D1F #1F997D #7D1F99
tetradic
#997D1F #1F9940 #1F3B99 #991F78
square
#997D1F #1F9940 #1F3B99 #991F78
split-complementary
#997D1F #1F7899 #401F99
monochromatic
#332A0A #665315 #997D1F #CCA729 #DDBE56

Accessibility & contrast

On white

3.96
#997D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#997D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997D1F
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997D1F#FFFFFF#000000##000000
##997D1F1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B0B
Deuteranopia (green-blind)
#938325
Tritanopia (blue-blind)
#A6726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #997d1f;
/* rgb */ color: rgb(153, 125, 31);
/* oklch */ color: oklch(60.0% 0.112 91.2);
Tailwind
colors: {
  custom: {
    50: '#bba263',
    500: '#997d1f',
    950: '#000000',
  },
}
SCSS
$custom: #997d1f;
$custom-light: #bba263;
$custom-dark: #000000;
JSON
{
  "hex": "#997d1f",
  "rgb": {
    "r": 153,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 46.23,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59994,
    "c": 0.11199,
    "h": 91.2
  },
  "luminance": 0.21538
}

Semantic roles & 50–950 ramp

primary
#997D1F
secondary
#546CC0
accent
#66E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #997D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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