#997C1F#997C1F

#997C1F is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.8% C 0.111 H 90.4°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#997C1F
RGBrgb(153, 124, 31)
HSLhsl(46, 66%, 36%)
HSVhsv(46, 80%, 60%)
CMYKcmyk(0%, 19%, 79.7%, 40%)
CIE-LABlab(53.26, 1.76, 51.20)
CIE-LCHlch(53.26, 51.23, 88.03°)
OKLaboklab(59.78% -0.0007 0.1114)
OKLCHoklch(59.78% 0.111 90.4)
XYZxyz(20.5931, 21.2879, 4.3204)
Luminance0.2129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997C1F #1F3C99
analogous
#993F1F #997C1F #79991F
triadic
#997C1F #1F997C #7C1F99
tetradic
#997C1F #1F993F #1F3C99 #991F79
square
#997C1F #1F993F #1F3C99 #991F79
split-complementary
#997C1F #1F7999 #3F1F99
monochromatic
#332A0A #665315 #997C1F #CCA529 #DDBD56

Accessibility & contrast

On white

3.99
#997C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#997C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997C1F
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997C1F#FFFFFF#000000##000000
##997C1F1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0B
Deuteranopia (green-blind)
#928325
Tritanopia (blue-blind)
#A6716A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #997c1f;
/* rgb */ color: rgb(153, 124, 31);
/* oklch */ color: oklch(59.8% 0.111 90.4);
Tailwind
colors: {
  custom: {
    50: '#bba163',
    500: '#997c1f',
    950: '#000000',
  },
}
SCSS
$custom: #997c1f;
$custom-light: #bba163;
$custom-dark: #000000;
JSON
{
  "hex": "#997c1f",
  "rgb": {
    "r": 153,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 45.738,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.5978,
    "c": 0.11144,
    "h": 90.4
  },
  "luminance": 0.21287
}

Semantic roles & 50–950 ramp

primary
#997C1F
secondary
#546DC0
accent
#67E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #997C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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