#9B8331#9B8331

#9B8331 is a mid, moderate yellow. Relative luminance 0.234; OKLCH L 61.6% C 0.104 H 92.6°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9B8331
RGBrgb(155, 131, 49)
HSLhsl(46, 52%, 40%)
HSVhsv(46, 68%, 61%)
CMYKcmyk(0%, 15.5%, 68.4%, 39.2%)
CIE-LABlab(55.51, -0.34, 46.11)
CIE-LCHlch(55.51, 46.11, 90.43°)
OKLaboklab(61.64% -0.0048 0.1041)
OKLCHoklch(61.64% 0.104 92.6)
XYZxyz(22.1894, 23.4241, 6.2577)
Luminance0.2342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8331 #31499B
analogous
#9B4E31 #9B8331 #7E9B31
triadic
#9B8331 #319B83 #83319B
tetradic
#9B8331 #319B4E #31499B #9B317E
square
#9B8331 #319B4E #31499B #9B317E
split-complementary
#9B8331 #317E9B #4E319B
monochromatic
#3E3414 #6D5C22 #9B8331 #C4A745 #D3BD73

Accessibility & contrast

On white

3.69
#9B8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#9B8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8331
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8331#FFFFFF#000000##000000
##9B83311.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918127
Deuteranopia (green-blind)
#978835
Tritanopia (blue-blind)
#A77972
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9b8331;
/* rgb */ color: rgb(155, 131, 49);
/* oklch */ color: oklch(61.6% 0.104 92.6);
Tailwind
colors: {
  custom: {
    50: '#bca66d',
    500: '#9b8331',
    950: '#000000',
  },
}
SCSS
$custom: #9b8331;
$custom-light: #bca66d;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8331",
  "rgb": {
    "r": 155,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 46.415,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.61639,
    "c": 0.10422,
    "h": 92.6
  },
  "luminance": 0.23423
}

Semantic roles & 50–950 ramp

primary
#9B8331
secondary
#6D7FBB
accent
#6DDB4C
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9B8331

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

Preview Lab → · Contrast checker → · Palette generator →

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