#9B9331#9B9331

#9B9331 is a light, moderate yellow. Relative luminance 0.281; OKLCH L 65.2% C 0.118 H 104.6°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9B9331
RGBrgb(155, 147, 49)
HSLhsl(55, 52%, 40%)
HSVhsv(55, 68%, 61%)
CMYKcmyk(0%, 5.2%, 68.4%, 39.2%)
CIE-LABlab(59.94, -9.10, 50.70)
CIE-LCHlch(59.94, 51.51, 100.17°)
OKLaboklab(65.16% -0.0297 0.1138)
OKLCHoklch(65.16% 0.118 104.6)
XYZxyz(24.5066, 28.0587, 7.0301)
Luminance0.2806 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9331 #31399B
analogous
#9B5E31 #9B9331 #6E9B31
triadic
#9B9331 #319B93 #93319B
tetradic
#9B9331 #319B5E #31399B #9B316E
square
#9B9331 #319B5E #31399B #9B316E
split-complementary
#9B9331 #316E9B #5E319B
monochromatic
#3E3B14 #6D6722 #9B9331 #C4BB45 #D3CC73

Accessibility & contrast

On white

3.18
#9B9331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#9B9331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9331
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9331#FFFFFF#000000##000000
##9B93311.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08E23
Deuteranopia (green-blind)
#A39237
Tritanopia (blue-blind)
#A6897F
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9b9331;
/* rgb */ color: rgb(155, 147, 49);
/* oklch */ color: oklch(65.2% 0.118 104.6);
Tailwind
colors: {
  custom: {
    50: '#bbb26f',
    500: '#9b9331',
    950: '#000000',
  },
}
SCSS
$custom: #9b9331;
$custom-light: #bbb26f;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9331",
  "rgb": {
    "r": 155,
    "g": 147,
    "b": 49
  },
  "hsl": {
    "h": 55.472,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.65155,
    "c": 0.11764,
    "h": 104.6
  },
  "luminance": 0.28058
}

Semantic roles & 50–950 ramp

primary
#9B9331
secondary
#6D73BB
accent
#57DB4C
background
#FBFAF6
surface
#F7F5EC
border
#D0CFC7
text
#121008
muted
#817F7B

Preview Lab

Preview with #9B9331

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

Preview Lab → · Contrast checker → · Palette generator →

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