#997D20#997D20

#997D20 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 60.0% C 0.111 H 91.1°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#997D20
RGBrgb(153, 125, 32)
HSLhsl(46, 65%, 36%)
HSVhsv(46, 79%, 60%)
CMYKcmyk(0%, 18.3%, 79.1%, 40%)
CIE-LABlab(53.54, 1.24, 51.10)
CIE-LCHlch(53.54, 51.11, 88.61°)
OKLaboklab(60% -0.0021 0.1114)
OKLCHoklch(60% 0.111 91.1)
XYZxyz(20.7324, 21.5451, 4.4329)
Luminance0.2154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997D20 #203C99
analogous
#994120 #997D20 #799920
triadic
#997D20 #20997D #7D2099
tetradic
#997D20 #209941 #203C99 #992079
square
#997D20 #209941 #203C99 #992079
split-complementary
#997D20 #207999 #412099
monochromatic
#342A0B #665415 #997D20 #CCA62B #DCBD57

Accessibility & contrast

On white

3.96
#997D20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#997D20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997D20
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997D20#FFFFFF#000000##000000
##997D201.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B0D
Deuteranopia (green-blind)
#938326
Tritanopia (blue-blind)
#A6726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #997d20;
/* rgb */ color: rgb(153, 125, 32);
/* oklch */ color: oklch(60.0% 0.111 91.1);
Tailwind
colors: {
  custom: {
    50: '#bba263',
    500: '#997d20',
    950: '#000000',
  },
}
SCSS
$custom: #997d20;
$custom-light: #bba263;
$custom-dark: #000000;
JSON
{
  "hex": "#997d20",
  "rgb": {
    "r": 153,
    "g": 125,
    "b": 32
  },
  "hsl": {
    "h": 46.116,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60001,
    "c": 0.11144,
    "h": 91.1
  },
  "luminance": 0.21544
}

Semantic roles & 50–950 ramp

primary
#997D20
secondary
#556EC0
accent
#67E83F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #997D20

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

Preview Lab → · Contrast checker → · Palette generator →

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