#9B8920#9B8920

#9B8920 is a light, moderate yellow. Relative luminance 0.250; OKLCH L 62.8% C 0.120 H 98.9°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9B8920
RGBrgb(155, 137, 32)
HSLhsl(51, 66%, 37%)
HSVhsv(51, 79%, 61%)
CMYKcmyk(0%, 11.6%, 79.4%, 39.2%)
CIE-LABlab(57.04, -4.50, 54.37)
CIE-LCHlch(57.04, 54.56, 94.73°)
OKLaboklab(62.82% -0.0185 0.1183)
OKLCHoklch(62.82% 0.12 98.9)
XYZxyz(22.7251, 24.9653, 4.9880)
Luminance0.2496 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8920 #20329B
analogous
#9B4C20 #9B8920 #6F9B20
triadic
#9B8920 #209B89 #89209B
tetradic
#9B8920 #209B4C #20329B #9B206F
square
#9B8920 #209B4C #20329B #9B206F
split-complementary
#9B8920 #206F9B #4C209B
monochromatic
#362F0B #685C16 #9B8920 #CEB62A #DDC959

Accessibility & contrast

On white

3.50
#9B8920 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#9B8920 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8920
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8920#FFFFFF#000000##000000
##9B89201.003.505.995.99
#FFFFFF3.501.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#978506
Deuteranopia (green-blind)
#9C8C28
Tritanopia (blue-blind)
#A87E75
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9b8920;
/* rgb */ color: rgb(155, 137, 32);
/* oklch */ color: oklch(62.8% 0.120 98.9);
Tailwind
colors: {
  custom: {
    50: '#bcab65',
    500: '#9b8920',
    950: '#000000',
  },
}
SCSS
$custom: #9b8920;
$custom-light: #bcab65;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8920",
  "rgb": {
    "r": 155,
    "g": 137,
    "b": 32
  },
  "hsl": {
    "h": 51.22,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.62816,
    "c": 0.11978,
    "h": 98.9
  },
  "luminance": 0.24964
}

Semantic roles & 50–950 ramp

primary
#9B8920
secondary
#5666C1
accent
#58E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9B8920

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

Preview Lab → · Contrast checker → · Palette generator →

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