#9E8020#9E8020

#9E8020 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 61.2% C 0.114 H 90.3°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#9E8020
RGBrgb(158, 128, 32)
HSLhsl(46, 66%, 37%)
HSVhsv(46, 80%, 62%)
CMYKcmyk(0%, 19%, 79.7%, 38%)
CIE-LABlab(54.88, 1.86, 52.52)
CIE-LCHlch(54.88, 52.55, 87.97°)
OKLaboklab(61.18% -0.0006 0.1142)
OKLCHoklch(61.18% 0.114 90.3)
XYZxyz(22.0818, 22.8132, 4.6065)
Luminance0.2281 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8020 #203E9E
analogous
#9E4120 #9E8020 #7D9E20
triadic
#9E8020 #209E80 #80209E
tetradic
#9E8020 #209E41 #203E9E #9E207D
square
#9E8020 #209E41 #203E9E #9E207D
split-complementary
#9E8020 #207D9E #41209E
monochromatic
#382E0B #6B5716 #9E8020 #D1A92A #DEBF5B

Accessibility & contrast

On white

3.78
#9E8020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#9E8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8020
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8020#FFFFFF#000000##000000
##9E80201.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9e8020;
/* rgb */ color: rgb(158, 128, 32);
/* oklch */ color: oklch(61.2% 0.114 90.3);
Tailwind
colors: {
  custom: {
    50: '#bfa464',
    500: '#9e8020',
    950: '#000000',
  },
}
SCSS
$custom: #9e8020;
$custom-light: #bfa464;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8020",
  "rgb": {
    "r": 158,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 45.714,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.61177,
    "c": 0.11421,
    "h": 90.3
  },
  "luminance": 0.22812
}

Semantic roles & 50–950 ramp

primary
#9E8020
secondary
#5871C2
accent
#67E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9E8020

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

Preview Lab → · Contrast checker → · Palette generator →

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