#9B8B2B#9B8B2B

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

Color values

HEX#9B8B2B
RGBrgb(155, 139, 43)
HSLhsl(51, 57%, 39%)
HSVhsv(51, 72%, 61%)
CMYKcmyk(0%, 10.3%, 72.3%, 39.2%)
CIE-LABlab(57.66, -5.10, 50.87)
CIE-LCHlch(57.66, 51.13, 95.72°)
OKLaboklab(63.33% -0.0191 0.1131)
OKLCHoklch(63.33% 0.115 99.6)
XYZxyz(23.1873, 25.6093, 6.0068)
Luminance0.2561 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8B2B #2B3B9B
analogous
#9B532B #9B8B2B #739B2B
triadic
#9B8B2B #2B9B8B #8B2B9B
tetradic
#9B8B2B #2B9B53 #2B3B9B #9B2B73
square
#9B8B2B #2B9B53 #2B3B9B #9B2B73
split-complementary
#9B8B2B #2B739B #532B9B
monochromatic
#3B3510 #6B601E #9B8B2B #C9B43B #D6C76B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B8B2B#FFFFFF#000000##000000
##9B8B2B1.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)
#99871C
Deuteranopia (green-blind)
#9D8D31
Tritanopia (blue-blind)
#A78178
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8b2b;
/* rgb */ color: rgb(155, 139, 43);
/* oklch */ color: oklch(63.3% 0.115 99.6);
Tailwind
colors: {
  custom: {
    50: '#bcac6b',
    500: '#9b8b2b',
    950: '#000000',
  },
}
SCSS
$custom: #9b8b2b;
$custom-light: #bcac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8b2b",
  "rgb": {
    "r": 155,
    "g": 139,
    "b": 43
  },
  "hsl": {
    "h": 51.429,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63331,
    "c": 0.1147,
    "h": 99.6
  },
  "luminance": 0.25608
}

Semantic roles & 50–950 ramp

primary
#9B8B2B
secondary
#6572BC
accent
#5EE048
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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