#9C8D31#9C8D31

#9C8D31 is a light, moderate yellow. Relative luminance 0.263; OKLCH L 63.9% C 0.112 H 99.9°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9C8D31
RGBrgb(156, 141, 49)
HSLhsl(52, 52%, 40%)
HSVhsv(52, 69%, 61%)
CMYKcmyk(0%, 9.6%, 68.6%, 38.8%)
CIE-LABlab(58.36, -5.40, 49.10)
CIE-LCHlch(58.36, 49.40, 96.28°)
OKLaboklab(63.92% -0.0193 0.1104)
OKLCHoklch(63.92% 0.112 99.9)
XYZxyz(23.7906, 26.3405, 6.7362)
Luminance0.2634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8D31 #31409C
analogous
#9C5831 #9C8D31 #759C31
triadic
#9C8D31 #319C8D #8D319C
tetradic
#9C8D31 #319C58 #31409C #9C3175
square
#9C8D31 #319C58 #31409C #9C3175
split-complementary
#9C8D31 #31759C #58319C
monochromatic
#3F3914 #6D6322 #9C8D31 #C5B345 #D3C674

Accessibility & contrast

On white

3.35
#9C8D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#9C8D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8D31
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8D31#FFFFFF#000000##000000
##9C8D311.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8925
Deuteranopia (green-blind)
#9F8F36
Tritanopia (blue-blind)
#A8837A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9c8d31;
/* rgb */ color: rgb(156, 141, 49);
/* oklch */ color: oklch(63.9% 0.112 99.9);
Tailwind
colors: {
  custom: {
    50: '#bcae6e',
    500: '#9c8d31',
    950: '#000000',
  },
}
SCSS
$custom: #9c8d31;
$custom-light: #bcae6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8d31",
  "rgb": {
    "r": 156,
    "g": 141,
    "b": 49
  },
  "hsl": {
    "h": 51.589,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.63919,
    "c": 0.1121,
    "h": 99.9
  },
  "luminance": 0.26339
}

Semantic roles & 50–950 ramp

primary
#9C8D31
secondary
#6D78BB
accent
#60DC4C
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8D31

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

Preview Lab → · Contrast checker → · Palette generator →

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