#9B8A2B#9B8A2B

#9B8A2B is a light, moderate yellow. Relative luminance 0.253; OKLCH L 63.1% C 0.114 H 98.8°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9B8A2B
RGBrgb(155, 138, 43)
HSLhsl(51, 57%, 39%)
HSVhsv(51, 72%, 61%)
CMYKcmyk(0%, 11%, 72.3%, 39.2%)
CIE-LABlab(57.39, -4.55, 50.60)
CIE-LCHlch(57.39, 50.80, 95.14°)
OKLaboklab(63.11% -0.0175 0.1125)
OKLCHoklch(63.11% 0.114 98.8)
XYZxyz(23.0432, 25.3211, 5.9587)
Luminance0.2532 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A2B #2B3C9B
analogous
#9B522B #9B8A2B #749B2B
triadic
#9B8A2B #2B9B8A #8A2B9B
tetradic
#9B8A2B #2B9B52 #2B3C9B #9B2B74
square
#9B8A2B #2B9B52 #2B3C9B #9B2B74
split-complementary
#9B8A2B #2B749B #522B9B
monochromatic
#3B3510 #6B5F1E #9B8A2B #C9B33B #D6C66B

Accessibility & contrast

On white

3.46
#9B8A2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#9B8A2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A2B
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A2B#FFFFFF#000000##000000
##9B8A2B1.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#98861C
Deuteranopia (green-blind)
#9C8C31
Tritanopia (blue-blind)
#A78077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a2b;
/* rgb */ color: rgb(155, 138, 43);
/* oklch */ color: oklch(63.1% 0.114 98.8);
Tailwind
colors: {
  custom: {
    50: '#bcab6b',
    500: '#9b8a2b',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a2b;
$custom-light: #bcab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a2b",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 50.893,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63111,
    "c": 0.11387,
    "h": 98.8
  },
  "luminance": 0.2532
}

Semantic roles & 50–950 ramp

primary
#9B8A2B
secondary
#6573BC
accent
#5FE048
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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