#997F1F#997F1F

#997F1F is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.4% C 0.113 H 92.8°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#997F1F
RGBrgb(153, 127, 31)
HSLhsl(47, 66%, 36%)
HSVhsv(47, 80%, 60%)
CMYKcmyk(0%, 17%, 79.7%, 40%)
CIE-LABlab(54.08, 0.08, 51.95)
CIE-LCHlch(54.08, 51.95, 89.92°)
OKLaboklab(60.43% -0.0055 0.113)
OKLCHoklch(60.43% 0.113 92.8)
XYZxyz(20.9748, 22.0513, 4.4476)
Luminance0.2205 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997F1F #1F3999
analogous
#99421F #997F1F #76991F
triadic
#997F1F #1F997F #7F1F99
tetradic
#997F1F #1F9942 #1F3999 #991F76
square
#997F1F #1F9942 #1F3999 #991F76
split-complementary
#997F1F #1F7699 #421F99
monochromatic
#332B0A #665515 #997F1F #CCA929 #DDC056

Accessibility & contrast

On white

3.88
#997F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#997F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997F1F
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997F1F#FFFFFF#000000##000000
##997F1F1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0A
Deuteranopia (green-blind)
#948425
Tritanopia (blue-blind)
#A6746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #997f1f;
/* rgb */ color: rgb(153, 127, 31);
/* oklch */ color: oklch(60.4% 0.113 92.8);
Tailwind
colors: {
  custom: {
    50: '#bba363',
    500: '#997f1f',
    950: '#000000',
  },
}
SCSS
$custom: #997f1f;
$custom-light: #bba363;
$custom-dark: #000000;
JSON
{
  "hex": "#997f1f",
  "rgb": {
    "r": 153,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 47.213,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60425,
    "c": 0.11318,
    "h": 92.8
  },
  "luminance": 0.2205
}

Semantic roles & 50–950 ramp

primary
#997F1F
secondary
#546BC0
accent
#63E93F
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #997F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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