#9B8A31#9B8A31

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

Color values

HEX#9B8A31
RGBrgb(155, 138, 49)
HSLhsl(50, 52%, 40%)
HSVhsv(50, 68%, 61%)
CMYKcmyk(0%, 11%, 68.4%, 39.2%)
CIE-LABlab(57.43, -4.21, 48.12)
CIE-LCHlch(57.43, 48.30, 95.01°)
OKLaboklab(63.16% -0.0159 0.1084)
OKLCHoklch(63.16% 0.11 98.3)
XYZxyz(23.1615, 25.3684, 6.5817)
Luminance0.2537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A31 #31429B
analogous
#9B5531 #9B8A31 #779B31
triadic
#9B8A31 #319B8A #8A319B
tetradic
#9B8A31 #319B55 #31429B #9B3177
square
#9B8A31 #319B55 #31429B #9B3177
split-complementary
#9B8A31 #31779B #55319B
monochromatic
#3E3714 #6D6122 #9B8A31 #C4B045 #D3C473

Accessibility & contrast

On white

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

On black

6.07
#9B8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A31
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A31#FFFFFF#000000##000000
##9B8A311.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#978725
Deuteranopia (green-blind)
#9C8C36
Tritanopia (blue-blind)
#A78078
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a31;
/* rgb */ color: rgb(155, 138, 49);
/* oklch */ color: oklch(63.2% 0.110 98.3);
Tailwind
colors: {
  custom: {
    50: '#bcab6e',
    500: '#9b8a31',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a31;
$custom-light: #bcab6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a31",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 50.377,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.63162,
    "c": 0.10951,
    "h": 98.3
  },
  "luminance": 0.25367
}

Semantic roles & 50–950 ramp

primary
#9B8A31
secondary
#6D79BB
accent
#63DB4C
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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