#997F2D#997F2D

#997F2D is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.5% C 0.104 H 91.1°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#997F2D
RGBrgb(153, 127, 45)
HSLhsl(46, 55%, 39%)
HSVhsv(46, 71%, 60%)
CMYKcmyk(0%, 17%, 70.6%, 40%)
CIE-LABlab(54.18, 0.74, 46.44)
CIE-LCHlch(54.18, 46.45, 89.08°)
OKLaboklab(60.53% -0.002 0.1042)
OKLCHoklch(60.53% 0.104 91.1)
XYZxyz(21.2010, 22.1418, 5.6392)
Luminance0.2214 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997F2D #2D4799
analogous
#99492D #997F2D #7D992D
triadic
#997F2D #2D997F #7F2D99
tetradic
#997F2D #2D9949 #2D4799 #992D7D
square
#997F2D #2D9949 #2D4799 #992D7D
split-complementary
#997F2D #2D7D99 #492D99
monochromatic
#3A3011 #6A581F #997F2D #C6A53D #D4BB6C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##997F2D#FFFFFF#000000##000000
##997F2D1.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)
#8D7D22
Deuteranopia (green-blind)
#938531
Tritanopia (blue-blind)
#A6756E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #997f2d;
/* rgb */ color: rgb(153, 127, 45);
/* oklch */ color: oklch(60.5% 0.104 91.1);
Tailwind
colors: {
  custom: {
    50: '#baa36b',
    500: '#997f2d',
    950: '#000000',
  },
}
SCSS
$custom: #997f2d;
$custom-light: #baa36b;
$custom-dark: #000000;
JSON
{
  "hex": "#997f2d",
  "rgb": {
    "r": 153,
    "g": 127,
    "b": 45
  },
  "hsl": {
    "h": 45.556,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.60531,
    "c": 0.1042,
    "h": 91.1
  },
  "luminance": 0.22141
}

Semantic roles & 50–950 ramp

primary
#997F2D
secondary
#677BBB
accent
#6EDE4A
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #997F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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