#9A8020#9A8020

#9A8020 is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.8% C 0.113 H 92.9°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9A8020
RGBrgb(154, 128, 32)
HSLhsl(47, 66%, 36%)
HSVhsv(47, 79%, 60%)
CMYKcmyk(0%, 16.9%, 79.2%, 39.6%)
CIE-LABlab(54.46, 0.02, 51.98)
CIE-LCHlch(54.46, 51.98, 89.98°)
OKLaboklab(60.75% -0.0057 0.1133)
OKLCHoklch(60.75% 0.113 92.9)
XYZxyz(21.3075, 22.4139, 4.5703)
Luminance0.2241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8020 #203A9A
analogous
#9A4320 #9A8020 #779A20
triadic
#9A8020 #209A80 #80209A
tetradic
#9A8020 #209A43 #203A9A #9A2077
square
#9A8020 #209A43 #203A9A #9A2077
split-complementary
#9A8020 #20779A #43209A
monochromatic
#352C0B #675615 #9A8020 #CDAA2B #DCC058

Accessibility & contrast

On white

3.83
#9A8020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#9A8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8020
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8020#FFFFFF#000000##000000
##9A80201.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0C
Deuteranopia (green-blind)
#958526
Tritanopia (blue-blind)
#A7756E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9a8020;
/* rgb */ color: rgb(154, 128, 32);
/* oklch */ color: oklch(60.8% 0.113 92.9);
Tailwind
colors: {
  custom: {
    50: '#bca464',
    500: '#9a8020',
    950: '#000000',
  },
}
SCSS
$custom: #9a8020;
$custom-light: #bca464;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8020",
  "rgb": {
    "r": 154,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 47.213,
    "s": 65.591,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60753,
    "c": 0.11341,
    "h": 92.9
  },
  "luminance": 0.22413
}

Semantic roles & 50–950 ramp

primary
#9A8020
secondary
#566CC0
accent
#63E93F
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9A8020

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

Preview Lab → · Contrast checker → · Palette generator →

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