#9D8820#9D8820

#9D8820 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.8% C 0.119 H 97.0°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9D8820
RGBrgb(157, 136, 32)
HSLhsl(50, 66%, 37%)
HSVhsv(50, 80%, 62%)
CMYKcmyk(0%, 13.4%, 79.6%, 38.4%)
CIE-LABlab(56.96, -3.04, 54.37)
CIE-LCHlch(56.96, 54.45, 93.20°)
OKLaboklab(62.8% -0.0145 0.1182)
OKLCHoklch(62.8% 0.119 97)
XYZxyz(22.9707, 24.8819, 4.9590)
Luminance0.2488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8820 #20359D
analogous
#9D4A20 #9D8820 #749D20
triadic
#9D8820 #209D88 #88209D
tetradic
#9D8820 #209D4A #20359D #9D2074
square
#9D8820 #209D4A #20359D #9D2074
split-complementary
#9D8820 #20749D #4A209D
monochromatic
#37300B #6A5C16 #9D8820 #D0B42A #DDC75A

Accessibility & contrast

On white

3.51
#9D8820 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#9D8820 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8820
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8820#FFFFFF#000000##000000
##9D88201.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978507
Deuteranopia (green-blind)
#9C8C27
Tritanopia (blue-blind)
#AA7D74
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9d8820;
/* rgb */ color: rgb(157, 136, 32);
/* oklch */ color: oklch(62.8% 0.119 97.0);
Tailwind
colors: {
  custom: {
    50: '#beaa65',
    500: '#9d8820',
    950: '#000000',
  },
}
SCSS
$custom: #9d8820;
$custom-light: #beaa65;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8820",
  "rgb": {
    "r": 157,
    "g": 136,
    "b": 32
  },
  "hsl": {
    "h": 49.92,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.62797,
    "c": 0.11913,
    "h": 97
  },
  "luminance": 0.24881
}

Semantic roles & 50–950 ramp

primary
#9D8820
secondary
#5769C1
accent
#5BE93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8820

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

Preview Lab → · Contrast checker → · Palette generator →

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