#9B8A37#9B8A37

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

Color values

HEX#9B8A37
RGBrgb(155, 138, 55)
HSLhsl(50, 48%, 41%)
HSVhsv(50, 65%, 61%)
CMYKcmyk(0%, 11%, 64.5%, 39.2%)
CIE-LABlab(57.48, -3.83, 45.47)
CIE-LCHlch(57.48, 45.63, 94.82°)
OKLaboklab(63.22% -0.014 0.1037)
OKLCHoklch(63.22% 0.105 97.7)
XYZxyz(23.2966, 25.4224, 7.2936)
Luminance0.2542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A37 #37489B
analogous
#9B5837 #9B8A37 #7A9B37
triadic
#9B8A37 #379B8A #8A379B
tetradic
#9B8A37 #379B58 #37489B #9B377A
square
#9B8A37 #379B58 #37489B #9B377A
split-complementary
#9B8A37 #377A9B #58379B
monochromatic
#413A17 #6E6227 #9B8A37 #C0AD4F #D0C27C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B8A37#FFFFFF#000000##000000
##9B8A371.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)
#97872D
Deuteranopia (green-blind)
#9C8D3B
Tritanopia (blue-blind)
#A78078
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a37;
/* rgb */ color: rgb(155, 138, 55);
/* oklch */ color: oklch(63.2% 0.105 97.7);
Tailwind
colors: {
  custom: {
    50: '#bbab72',
    500: '#9b8a37',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a37;
$custom-light: #bbab72;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a37",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 55
  },
  "hsl": {
    "h": 49.8,
    "s": 47.619,
    "l": 41.176
  },
  "oklch": {
    "l": 0.6322,
    "c": 0.10468,
    "h": 97.7
  },
  "luminance": 0.25421
}

Semantic roles & 50–950 ramp

primary
#9B8A37
secondary
#7480BA
accent
#67D751
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9B8A37

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

Preview Lab → · Contrast checker → · Palette generator →

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