#9B8B29#9B8B29

#9B8B29 is a light, moderate yellow. Relative luminance 0.256; OKLCH L 63.3% C 0.116 H 99.7°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9B8B29
RGBrgb(155, 139, 41)
HSLhsl(52, 58%, 38%)
HSVhsv(52, 74%, 61%)
CMYKcmyk(0%, 10.3%, 73.5%, 39.2%)
CIE-LABlab(57.65, -5.20, 51.65)
CIE-LCHlch(57.65, 51.91, 95.75°)
OKLaboklab(63.32% -0.0196 0.1144)
OKLCHoklch(63.32% 0.116 99.7)
XYZxyz(23.1515, 25.5950, 5.8182)
Luminance0.2559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8B29 #29399B
analogous
#9B5229 #9B8B29 #729B29
triadic
#9B8B29 #299B8B #8B299B
tetradic
#9B8B29 #299B52 #29399B #9B2972
square
#9B8B29 #299B52 #29399B #9B2972
split-complementary
#9B8B29 #29729B #52299B
monochromatic
#3A340F #6B601C #9B8B29 #CAB537 #D7C767

Accessibility & contrast

On white

3.43
#9B8B29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#9B8B29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8B29
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8B29#FFFFFF#000000##000000
##9B8B291.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998719
Deuteranopia (green-blind)
#9D8D2F
Tritanopia (blue-blind)
#A78178
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8b29;
/* rgb */ color: rgb(155, 139, 41);
/* oklch */ color: oklch(63.3% 0.116 99.7);
Tailwind
colors: {
  custom: {
    50: '#bcac6a',
    500: '#9b8b29',
    950: '#000000',
  },
}
SCSS
$custom: #9b8b29;
$custom-light: #bcac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8b29",
  "rgb": {
    "r": 155,
    "g": 139,
    "b": 41
  },
  "hsl": {
    "h": 51.579,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63316,
    "c": 0.11603,
    "h": 99.7
  },
  "luminance": 0.25594
}

Semantic roles & 50–950 ramp

primary
#9B8B29
secondary
#636FBD
accent
#5CE146
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8B29

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

Preview Lab → · Contrast checker → · Palette generator →

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