#9D8020#9D8020

#9D8020 is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 61.1% C 0.114 H 90.9°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9D8020
RGBrgb(157, 128, 32)
HSLhsl(46, 66%, 37%)
HSVhsv(46, 80%, 62%)
CMYKcmyk(0%, 18.5%, 79.6%, 38.4%)
CIE-LABlab(54.77, 1.40, 52.38)
CIE-LCHlch(54.77, 52.40, 88.47°)
OKLaboklab(61.07% -0.0019 0.114)
OKLCHoklch(61.07% 0.114 90.9)
XYZxyz(21.8858, 22.7121, 4.5974)
Luminance0.2271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8020 #203D9D
analogous
#9D4220 #9D8020 #7C9D20
triadic
#9D8020 #209D80 #80209D
tetradic
#9D8020 #209D42 #203D9D #9D207C
square
#9D8020 #209D42 #203D9D #9D207C
split-complementary
#9D8020 #207C9D #42209D
monochromatic
#372D0B #6A5716 #9D8020 #D0A92A #DDBF5A

Accessibility & contrast

On white

3.79
#9D8020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#9D8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8020
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8020#FFFFFF#000000##000000
##9D80201.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0B
Deuteranopia (green-blind)
#968626
Tritanopia (blue-blind)
#AA756E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9d8020;
/* rgb */ color: rgb(157, 128, 32);
/* oklch */ color: oklch(61.1% 0.114 90.9);
Tailwind
colors: {
  custom: {
    50: '#bea464',
    500: '#9d8020',
    950: '#000000',
  },
}
SCSS
$custom: #9d8020;
$custom-light: #bea464;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8020",
  "rgb": {
    "r": 157,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 46.08,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.6107,
    "c": 0.114,
    "h": 90.9
  },
  "luminance": 0.22711
}

Semantic roles & 50–950 ramp

primary
#9D8020
secondary
#5770C1
accent
#66E93F
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8020

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

Preview Lab → · Contrast checker → · Palette generator →

#9D8020 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva