#9C8B31#9C8B31

#9C8B31 is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.5% C 0.110 H 98.4°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9C8B31
RGBrgb(156, 139, 49)
HSLhsl(50, 52%, 40%)
HSVhsv(50, 69%, 61%)
CMYKcmyk(0%, 10.9%, 68.6%, 38.8%)
CIE-LABlab(57.80, -4.31, 48.53)
CIE-LCHlch(57.80, 48.72, 95.08°)
OKLaboklab(63.48% -0.0162 0.1092)
OKLCHoklch(63.48% 0.11 98.4)
XYZxyz(23.4984, 25.7560, 6.6388)
Luminance0.2576 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8B31 #31429C
analogous
#9C5531 #9C8B31 #789C31
triadic
#9C8B31 #319C8B #8B319C
tetradic
#9C8B31 #319C55 #31429C #9C3178
square
#9C8B31 #319C55 #31429C #9C3178
split-complementary
#9C8B31 #31789C #55319C
monochromatic
#3F3814 #6D6222 #9C8B31 #C5B145 #D3C474

Accessibility & contrast

On white

3.41
#9C8B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#9C8B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8B31
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8B31#FFFFFF#000000##000000
##9C8B311.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988725
Deuteranopia (green-blind)
#9D8D36
Tritanopia (blue-blind)
#A88178
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9c8b31;
/* rgb */ color: rgb(156, 139, 49);
/* oklch */ color: oklch(63.5% 0.110 98.4);
Tailwind
colors: {
  custom: {
    50: '#bcac6e',
    500: '#9c8b31',
    950: '#000000',
  },
}
SCSS
$custom: #9c8b31;
$custom-light: #bcac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8b31",
  "rgb": {
    "r": 156,
    "g": 139,
    "b": 49
  },
  "hsl": {
    "h": 50.467,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.6348,
    "c": 0.11041,
    "h": 98.4
  },
  "luminance": 0.25755
}

Semantic roles & 50–950 ramp

primary
#9C8B31
secondary
#6D7ABB
accent
#63DC4C
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8B31

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

Preview Lab → · Contrast checker → · Palette generator →

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