#997F2F#997F2F

#997F2F is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.103 H 90.8°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#997F2F
RGBrgb(153, 127, 47)
HSLhsl(45, 53%, 39%)
HSVhsv(45, 69%, 60%)
CMYKcmyk(0%, 17%, 69.3%, 40%)
CIE-LABlab(54.19, 0.86, 45.57)
CIE-LCHlch(54.19, 45.58, 88.92°)
OKLaboklab(60.55% -0.0014 0.1027)
OKLCHoklch(60.55% 0.103 90.8)
XYZxyz(21.2404, 22.1575, 5.8468)
Luminance0.2216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997F2F #2F4999
analogous
#994A2F #997F2F #7E992F
triadic
#997F2F #2F997F #7F2F99
tetradic
#997F2F #2F994A #2F4999 #992F7E
square
#997F2F #2F994A #2F4999 #992F7E
split-complementary
#997F2F #2F7E99 #4A2F99
monochromatic
#3B3112 #6A5821 #997F2F #C5A441 #D3BB6F

Accessibility & contrast

On white

3.87
#997F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#997F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997F2F
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997F2F#FFFFFF#000000##000000
##997F2F1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D25
Deuteranopia (green-blind)
#938533
Tritanopia (blue-blind)
#A5756E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #997f2f;
/* rgb */ color: rgb(153, 127, 47);
/* oklch */ color: oklch(60.6% 0.103 90.8);
Tailwind
colors: {
  custom: {
    50: '#baa36c',
    500: '#997f2f',
    950: '#000000',
  },
}
SCSS
$custom: #997f2f;
$custom-light: #baa36c;
$custom-dark: #000000;
JSON
{
  "hex": "#997f2f",
  "rgb": {
    "r": 153,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 45.283,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.6055,
    "c": 0.1027,
    "h": 90.8
  },
  "luminance": 0.22156
}

Semantic roles & 50–950 ramp

primary
#997F2F
secondary
#697DBA
accent
#6FDC4B
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #997F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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