#997E1F#997E1F

#997E1F is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 60.2% C 0.113 H 92.0°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#997E1F
RGBrgb(153, 126, 31)
HSLhsl(47, 66%, 36%)
HSVhsv(47, 80%, 60%)
CMYKcmyk(0%, 17.6%, 79.7%, 40%)
CIE-LABlab(53.81, 0.64, 51.70)
CIE-LCHlch(53.81, 51.71, 89.30°)
OKLaboklab(60.21% -0.004 0.1125)
OKLCHoklch(60.21% 0.113 92)
XYZxyz(20.8463, 21.7942, 4.4048)
Luminance0.2179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997E1F #1F3A99
analogous
#99411F #997E1F #77991F
triadic
#997E1F #1F997E #7E1F99
tetradic
#997E1F #1F9941 #1F3A99 #991F77
square
#997E1F #1F9941 #1F3A99 #991F77
split-complementary
#997E1F #1F7799 #411F99
monochromatic
#332A0A #665415 #997E1F #CCA829 #DDBF56

Accessibility & contrast

On white

3.92
#997E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#997E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997E1F
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997E1F#FFFFFF#000000##000000
##997E1F1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C0A
Deuteranopia (green-blind)
#938425
Tritanopia (blue-blind)
#A6736C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #997e1f;
/* rgb */ color: rgb(153, 126, 31);
/* oklch */ color: oklch(60.2% 0.113 92.0);
Tailwind
colors: {
  custom: {
    50: '#bba363',
    500: '#997e1f',
    950: '#000000',
  },
}
SCSS
$custom: #997e1f;
$custom-light: #bba363;
$custom-dark: #000000;
JSON
{
  "hex": "#997e1f",
  "rgb": {
    "r": 153,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 46.721,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60209,
    "c": 0.11257,
    "h": 92
  },
  "luminance": 0.21793
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #997E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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