#997B1F#997B1F

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

Color values

HEX#997B1F
RGBrgb(153, 123, 31)
HSLhsl(45, 66%, 36%)
HSVhsv(45, 80%, 60%)
CMYKcmyk(0%, 19.6%, 79.7%, 40%)
CIE-LABlab(52.99, 2.32, 50.95)
CIE-LCHlch(52.99, 51.01, 87.39°)
OKLaboklab(59.57% 0.0009 0.1109)
OKLCHoklch(59.57% 0.111 89.6)
XYZxyz(20.4684, 21.0385, 4.2788)
Luminance0.2104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997B1F #1F3D99
analogous
#993E1F #997B1F #7A991F
triadic
#997B1F #1F997B #7B1F99
tetradic
#997B1F #1F993E #1F3D99 #991F7A
square
#997B1F #1F993E #1F3D99 #991F7A
split-complementary
#997B1F #1F7A99 #3E1F99
monochromatic
#33290A #665215 #997B1F #CCA429 #DDBC56

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##997B1F#FFFFFF#000000##000000
##997B1F1.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)
#8A7A0C
Deuteranopia (green-blind)
#918224
Tritanopia (blue-blind)
#A67069
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #997b1f;
/* rgb */ color: rgb(153, 123, 31);
/* oklch */ color: oklch(59.6% 0.111 89.6);
Tailwind
colors: {
  custom: {
    50: '#bba063',
    500: '#997b1f',
    950: '#000000',
  },
}
SCSS
$custom: #997b1f;
$custom-light: #bba063;
$custom-dark: #000000;
JSON
{
  "hex": "#997b1f",
  "rgb": {
    "r": 153,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 45.246,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59566,
    "c": 0.1109,
    "h": 89.6
  },
  "luminance": 0.21037
}

Semantic roles & 50–950 ramp

primary
#997B1F
secondary
#546EC0
accent
#69E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #997B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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