#9C8A31#9C8A31

#9C8A31 is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.3% C 0.110 H 97.7°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9C8A31
RGBrgb(156, 138, 49)
HSLhsl(50, 52%, 40%)
HSVhsv(50, 69%, 61%)
CMYKcmyk(0%, 11.5%, 68.6%, 38.8%)
CIE-LABlab(57.53, -3.76, 48.25)
CIE-LCHlch(57.53, 48.39, 94.46°)
OKLaboklab(63.26% -0.0146 0.1086)
OKLCHoklch(63.26% 0.11 97.7)
XYZxyz(23.3542, 25.4678, 6.5908)
Luminance0.2547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8A31 #31439C
analogous
#9C5531 #9C8A31 #789C31
triadic
#9C8A31 #319C8A #8A319C
tetradic
#9C8A31 #319C55 #31439C #9C3178
square
#9C8A31 #319C55 #31439C #9C3178
split-complementary
#9C8A31 #31789C #55319C
monochromatic
#3F3814 #6D6122 #9C8A31 #C5AF45 #D3C374

Accessibility & contrast

On white

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

On black

6.09
#9C8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8A31
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8A31#FFFFFF#000000##000000
##9C8A311.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988725
Deuteranopia (green-blind)
#9C8D36
Tritanopia (blue-blind)
#A88078
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9c8a31;
/* rgb */ color: rgb(156, 138, 49);
/* oklch */ color: oklch(63.3% 0.110 97.7);
Tailwind
colors: {
  custom: {
    50: '#bcab6e',
    500: '#9c8a31',
    950: '#000000',
  },
}
SCSS
$custom: #9c8a31;
$custom-light: #bcab6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8a31",
  "rgb": {
    "r": 156,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 49.907,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.63261,
    "c": 0.10958,
    "h": 97.7
  },
  "luminance": 0.25467
}

Semantic roles & 50–950 ramp

primary
#9C8A31
secondary
#6D7BBB
accent
#64DC4C
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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