#9B8A2A#9B8A2A

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

Color values

HEX#9B8A2A
RGBrgb(155, 138, 42)
HSLhsl(51, 57%, 39%)
HSVhsv(51, 73%, 61%)
CMYKcmyk(0%, 11%, 72.9%, 39.2%)
CIE-LABlab(57.38, -4.60, 50.99)
CIE-LCHlch(57.38, 51.20, 95.16°)
OKLaboklab(63.1% -0.0178 0.1132)
OKLCHoklch(63.1% 0.115 98.9)
XYZxyz(23.0251, 25.3138, 5.8633)
Luminance0.2531 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A2A #2A3B9B
analogous
#9B512A #9B8A2A #739B2A
triadic
#9B8A2A #2A9B8A #8A2A9B
tetradic
#9B8A2A #2A9B51 #2A3B9B #9B2A73
square
#9B8A2A #2A9B51 #2A3B9B #9B2A73
split-complementary
#9B8A2A #2A739B #512A9B
monochromatic
#3B3410 #6B5F1D #9B8A2A #C9B439 #D6C669

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B8A2A#FFFFFF#000000##000000
##9B8A2A1.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)
#98861B
Deuteranopia (green-blind)
#9C8C30
Tritanopia (blue-blind)
#A78077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a2a;
/* rgb */ color: rgb(155, 138, 42);
/* oklch */ color: oklch(63.1% 0.115 98.9);
Tailwind
colors: {
  custom: {
    50: '#bcab6a',
    500: '#9b8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a2a;
$custom-light: #bcab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a2a",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 50.973,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.63104,
    "c": 0.11455,
    "h": 98.9
  },
  "luminance": 0.25313
}

Semantic roles & 50–950 ramp

primary
#9B8A2A
secondary
#6471BD
accent
#5EE147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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