#9B8939#9B8939

#9B8939 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.0% C 0.102 H 96.6°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#9B8939
RGBrgb(155, 137, 57)
HSLhsl(49, 46%, 42%)
HSVhsv(49, 63%, 61%)
CMYKcmyk(0%, 11.6%, 63.2%, 39.2%)
CIE-LABlab(57.23, -3.15, 44.26)
CIE-LCHlch(57.23, 44.37, 94.07°)
OKLaboklab(63.02% -0.0118 0.1015)
OKLCHoklch(63.02% 0.102 96.6)
XYZxyz(23.2027, 25.1564, 7.5036)
Luminance0.2515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8939 #394B9B
analogous
#9B5839 #9B8939 #7C9B39
triadic
#9B8939 #399B89 #89399B
tetradic
#9B8939 #399B58 #394B9B #9B397C
square
#9B8939 #399B58 #394B9B #9B397C
split-complementary
#9B8939 #397C9B #58399B
monochromatic
#423A18 #6E6129 #9B8939 #BFAB52 #D0C17F

Accessibility & contrast

On white

3.48
#9B8939 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#9B8939 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8939
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8939#FFFFFF#000000##000000
##9B89391.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968630
Deuteranopia (green-blind)
#9B8C3D
Tritanopia (blue-blind)
#A77F78
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9b8939;
/* rgb */ color: rgb(155, 137, 57);
/* oklch */ color: oklch(63.0% 0.102 96.6);
Tailwind
colors: {
  custom: {
    50: '#bbab73',
    500: '#9b8939',
    950: '#000000',
  },
}
SCSS
$custom: #9b8939;
$custom-light: #bbab73;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8939",
  "rgb": {
    "r": 155,
    "g": 137,
    "b": 57
  },
  "hsl": {
    "h": 48.98,
    "s": 46.226,
    "l": 41.569
  },
  "oklch": {
    "l": 0.63023,
    "c": 0.10214,
    "h": 96.6
  },
  "luminance": 0.25155
}

Semantic roles & 50–950 ramp

primary
#9B8939
secondary
#7783B9
accent
#6AD652
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9B8939

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

Preview Lab → · Contrast checker → · Palette generator →

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