#9D8420#9D8420

#9D8420 is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.9% C 0.116 H 94.1°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#9D8420
RGBrgb(157, 132, 32)
HSLhsl(48, 66%, 37%)
HSVhsv(48, 80%, 62%)
CMYKcmyk(0%, 15.9%, 79.6%, 38.4%)
CIE-LABlab(55.86, -0.83, 53.37)
CIE-LCHlch(55.86, 53.38, 90.89°)
OKLaboklab(61.93% -0.0082 0.1161)
OKLCHoklch(61.93% 0.116 94.1)
XYZxyz(22.4179, 23.7762, 4.7747)
Luminance0.2377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8420 #20399D
analogous
#9D4620 #9D8420 #789D20
triadic
#9D8420 #209D84 #84209D
tetradic
#9D8420 #209D46 #20399D #9D2078
square
#9D8420 #209D46 #20399D #9D2078
split-complementary
#9D8420 #20789D #46209D
monochromatic
#372F0B #6A5916 #9D8420 #D0AF2A #DDC35A

Accessibility & contrast

On white

3.65
#9D8420 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#9D8420 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8420
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8420#FFFFFF#000000##000000
##9D84201.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938209
Deuteranopia (green-blind)
#998927
Tritanopia (blue-blind)
#AA7971
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9d8420;
/* rgb */ color: rgb(157, 132, 32);
/* oklch */ color: oklch(61.9% 0.116 94.1);
Tailwind
colors: {
  custom: {
    50: '#bea764',
    500: '#9d8420',
    950: '#000000',
  },
}
SCSS
$custom: #9d8420;
$custom-light: #bea764;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8420",
  "rgb": {
    "r": 157,
    "g": 132,
    "b": 32
  },
  "hsl": {
    "h": 48,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.61929,
    "c": 0.1164,
    "h": 94.1
  },
  "luminance": 0.23775
}

Semantic roles & 50–950 ramp

primary
#9D8420
secondary
#576DC1
accent
#61E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8420

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

Preview Lab → · Contrast checker → · Palette generator →

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