#9B8A35#9B8A35

#9B8A35 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.106 H 97.9°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9B8A35
RGBrgb(155, 138, 53)
HSLhsl(50, 49%, 41%)
HSVhsv(50, 66%, 61%)
CMYKcmyk(0%, 11%, 65.8%, 39.2%)
CIE-LABlab(57.47, -3.96, 46.37)
CIE-LCHlch(57.47, 46.54, 94.89°)
OKLaboklab(63.2% -0.0147 0.1053)
OKLCHoklch(63.2% 0.106 97.9)
XYZxyz(23.2497, 25.4036, 7.0462)
Luminance0.2540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A35 #35469B
analogous
#9B5735 #9B8A35 #799B35
triadic
#9B8A35 #359B8A #8A359B
tetradic
#9B8A35 #359B57 #35469B #9B3579
square
#9B8A35 #359B57 #35469B #9B3579
split-complementary
#9B8A35 #35799B #57359B
monochromatic
#403916 #6D6125 #9B8A35 #C2AE4C #D1C379

Accessibility & contrast

On white

3.45
#9B8A35 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#9B8A35 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A35
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A35#FFFFFF#000000##000000
##9B8A351.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#97872B
Deuteranopia (green-blind)
#9C8D39
Tritanopia (blue-blind)
#A78078
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a35;
/* rgb */ color: rgb(155, 138, 53);
/* oklch */ color: oklch(63.2% 0.106 97.9);
Tailwind
colors: {
  custom: {
    50: '#bbab70',
    500: '#9b8a35',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a35;
$custom-light: #bbab70;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a35",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 53
  },
  "hsl": {
    "h": 50,
    "s": 49.038,
    "l": 40.784
  },
  "oklch": {
    "l": 0.632,
    "c": 0.10635,
    "h": 97.9
  },
  "luminance": 0.25403
}

Semantic roles & 50–950 ramp

primary
#9B8A35
secondary
#727EBA
accent
#66D94F
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121008
muted
#817F7B

Preview Lab

Preview with #9B8A35

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

Preview Lab → · Contrast checker → · Palette generator →

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