#997F2B#997F2B

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

Color values

HEX#997F2B
RGBrgb(153, 127, 43)
HSLhsl(46, 56%, 38%)
HSVhsv(46, 72%, 60%)
CMYKcmyk(0%, 17%, 71.9%, 40%)
CIE-LABlab(54.16, 0.63, 47.30)
CIE-LCHlch(54.16, 47.30, 89.23°)
OKLaboklab(60.51% -0.0026 0.1056)
OKLCHoklch(60.51% 0.106 91.4)
XYZxyz(21.1634, 22.1267, 5.4412)
Luminance0.2213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997F2B #2B4599
analogous
#99482B #997F2B #7C992B
triadic
#997F2B #2B997F #7F2B99
tetradic
#997F2B #2B9948 #2B4599 #992B7C
square
#997F2B #2B9948 #2B4599 #992B7C
split-complementary
#997F2B #2B7C99 #482B99
monochromatic
#393010 #69571E #997F2B #C8A63A #D5BC69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##997F2B#FFFFFF#000000##000000
##997F2B1.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)
#8D7D1F
Deuteranopia (green-blind)
#94852F
Tritanopia (blue-blind)
#A6746E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #997f2b;
/* rgb */ color: rgb(153, 127, 43);
/* oklch */ color: oklch(60.5% 0.106 91.4);
Tailwind
colors: {
  custom: {
    50: '#bba369',
    500: '#997f2b',
    950: '#000000',
  },
}
SCSS
$custom: #997f2b;
$custom-light: #bba369;
$custom-dark: #000000;
JSON
{
  "hex": "#997f2b",
  "rgb": {
    "r": 153,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 45.818,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.60514,
    "c": 0.10565,
    "h": 91.4
  },
  "luminance": 0.22125
}

Semantic roles & 50–950 ramp

primary
#997F2B
secondary
#6479BC
accent
#6CDF48
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #997F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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