#9B8320#9B8320

#9B8320 is a mid, moderate yellow. Relative luminance 0.233; OKLCH L 61.5% C 0.115 H 94.5°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#9B8320
RGBrgb(155, 131, 32)
HSLhsl(48, 66%, 37%)
HSVhsv(48, 79%, 61%)
CMYKcmyk(0%, 15.5%, 79.4%, 39.2%)
CIE-LABlab(55.39, -1.19, 52.87)
CIE-LCHlch(55.39, 52.88, 91.29°)
OKLaboklab(61.51% -0.0092 0.1151)
OKLCHoklch(61.51% 0.115 94.5)
XYZxyz(21.8958, 23.3067, 4.7116)
Luminance0.2331 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8320 #20389B
analogous
#9B4620 #9B8320 #769B20
triadic
#9B8320 #209B83 #83209B
tetradic
#9B8320 #209B46 #20389B #9B2076
square
#9B8320 #209B46 #20389B #9B2076
split-complementary
#9B8320 #20769B #46209B
monochromatic
#362D0B #685816 #9B8320 #CEAE2A #DDC359

Accessibility & contrast

On white

3.71
#9B8320 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#9B8320 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8320
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8320#FFFFFF#000000##000000
##9B83201.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#92800A
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#A87870
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9b8320;
/* rgb */ color: rgb(155, 131, 32);
/* oklch */ color: oklch(61.5% 0.115 94.5);
Tailwind
colors: {
  custom: {
    50: '#bca664',
    500: '#9b8320',
    950: '#000000',
  },
}
SCSS
$custom: #9b8320;
$custom-light: #bca664;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8320",
  "rgb": {
    "r": 155,
    "g": 131,
    "b": 32
  },
  "hsl": {
    "h": 48.293,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61506,
    "c": 0.11548,
    "h": 94.5
  },
  "luminance": 0.23305
}

Semantic roles & 50–950 ramp

primary
#9B8320
secondary
#566BC1
accent
#60E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B8320

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

Preview Lab → · Contrast checker → · Palette generator →

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