#9D8920#9D8920

#9D8920 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.0% C 0.120 H 97.7°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#9D8920
RGBrgb(157, 137, 32)
HSLhsl(50, 66%, 37%)
HSVhsv(50, 80%, 62%)
CMYKcmyk(0%, 12.7%, 79.6%, 38.4%)
CIE-LABlab(57.24, -3.59, 54.62)
CIE-LCHlch(57.24, 54.74, 93.76°)
OKLaboklab(63.02% -0.016 0.1188)
OKLCHoklch(63.02% 0.12 97.7)
XYZxyz(23.1122, 25.1649, 5.0062)
Luminance0.2516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8920 #20349D
analogous
#9D4B20 #9D8920 #739D20
triadic
#9D8920 #209D89 #89209D
tetradic
#9D8920 #209D4B #20349D #9D2073
square
#9D8920 #209D4B #20349D #9D2073
split-complementary
#9D8920 #20739D #4B209D
monochromatic
#37300B #6A5D16 #9D8920 #D0B52A #DDC85A

Accessibility & contrast

On white

3.48
#9D8920 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#9D8920 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8920
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8920#FFFFFF#000000##000000
##9D89201.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978606
Deuteranopia (green-blind)
#9D8C28
Tritanopia (blue-blind)
#AA7E75
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9d8920;
/* rgb */ color: rgb(157, 137, 32);
/* oklch */ color: oklch(63.0% 0.120 97.7);
Tailwind
colors: {
  custom: {
    50: '#beab65',
    500: '#9d8920',
    950: '#000000',
  },
}
SCSS
$custom: #9d8920;
$custom-light: #beab65;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8920",
  "rgb": {
    "r": 157,
    "g": 137,
    "b": 32
  },
  "hsl": {
    "h": 50.4,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63015,
    "c": 0.11986,
    "h": 97.7
  },
  "luminance": 0.25164
}

Semantic roles & 50–950 ramp

primary
#9D8920
secondary
#5768C1
accent
#5AE93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8920

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

Preview Lab → · Contrast checker → · Palette generator →

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