#9B8322#9B8322

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

Color values

HEX#9B8322
RGBrgb(155, 131, 34)
HSLhsl(48, 64%, 37%)
HSVhsv(48, 78%, 61%)
CMYKcmyk(0%, 15.5%, 78.1%, 39.2%)
CIE-LABlab(55.40, -1.11, 52.16)
CIE-LCHlch(55.40, 52.17, 91.22°)
OKLaboklab(61.52% -0.0087 0.114)
OKLCHoklch(61.52% 0.114 94.4)
XYZxyz(21.9238, 23.3179, 4.8591)
Luminance0.2332 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8322 #223A9B
analogous
#9B4722 #9B8322 #779B22
triadic
#9B8322 #229B83 #83229B
tetradic
#9B8322 #229B47 #223A9B #9B2277
square
#9B8322 #229B47 #223A9B #9B2277
split-complementary
#9B8322 #22779B #47229B
monochromatic
#372E0C #695917 #9B8322 #CDAD2D #DBC25C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B8322#FFFFFF#000000##000000
##9B83221.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)
#92800F
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#A87870
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9b8322;
/* rgb */ color: rgb(155, 131, 34);
/* oklch */ color: oklch(61.5% 0.114 94.4);
Tailwind
colors: {
  custom: {
    50: '#bca665',
    500: '#9b8322',
    950: '#000000',
  },
}
SCSS
$custom: #9b8322;
$custom-light: #bca665;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8322",
  "rgb": {
    "r": 155,
    "g": 131,
    "b": 34
  },
  "hsl": {
    "h": 48.099,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.61519,
    "c": 0.11436,
    "h": 94.4
  },
  "luminance": 0.23317
}

Semantic roles & 50–950 ramp

primary
#9B8322
secondary
#596DC0
accent
#62E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B8322

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

Preview Lab → · Contrast checker → · Palette generator →

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