#997F20#997F20

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

Color values

HEX#997F20
RGBrgb(153, 127, 32)
HSLhsl(47, 65%, 36%)
HSVhsv(47, 79%, 60%)
CMYKcmyk(0%, 17%, 79.1%, 40%)
CIE-LABlab(54.09, 0.12, 51.60)
CIE-LCHlch(54.09, 51.60, 89.87°)
OKLaboklab(60.43% -0.0053 0.1125)
OKLCHoklch(60.43% 0.113 92.7)
XYZxyz(20.9882, 22.0566, 4.5181)
Luminance0.2205 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997F20 #203A99
analogous
#994320 #997F20 #779920
triadic
#997F20 #20997F #7F2099
tetradic
#997F20 #209943 #203A99 #992077
square
#997F20 #209943 #203A99 #992077
split-complementary
#997F20 #207799 #432099
monochromatic
#342B0B #665515 #997F20 #CCA92B #DCBF57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##997F20#FFFFFF#000000##000000
##997F201.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)
#8E7D0C
Deuteranopia (green-blind)
#948426
Tritanopia (blue-blind)
#A6746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #997f20;
/* rgb */ color: rgb(153, 127, 32);
/* oklch */ color: oklch(60.4% 0.113 92.7);
Tailwind
colors: {
  custom: {
    50: '#bba364',
    500: '#997f20',
    950: '#000000',
  },
}
SCSS
$custom: #997f20;
$custom-light: #bba364;
$custom-dark: #000000;
JSON
{
  "hex": "#997f20",
  "rgb": {
    "r": 153,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 47.107,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60431,
    "c": 0.11263,
    "h": 92.7
  },
  "luminance": 0.22055
}

Semantic roles & 50–950 ramp

primary
#997F20
secondary
#556CC0
accent
#64E83F
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #997F20

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

Preview Lab → · Contrast checker → · Palette generator →

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