#9C8F31#9C8F31

#9C8F31 is a light, moderate yellow. Relative luminance 0.269; OKLCH L 64.4% C 0.114 H 101.4°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#9C8F31
RGBrgb(156, 143, 49)
HSLhsl(53, 52%, 40%)
HSVhsv(53, 69%, 61%)
CMYKcmyk(0%, 8.3%, 68.6%, 38.8%)
CIE-LABlab(58.91, -6.49, 49.68)
CIE-LCHlch(58.91, 50.10, 97.45°)
OKLaboklab(64.36% -0.0224 0.1116)
OKLCHoklch(64.36% 0.114 101.4)
XYZxyz(24.0882, 26.9356, 6.8354)
Luminance0.2693 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8F31 #313E9C
analogous
#9C5931 #9C8F31 #749C31
triadic
#9C8F31 #319C8F #8F319C
tetradic
#9C8F31 #319C59 #313E9C #9C3174
square
#9C8F31 #319C59 #313E9C #9C3174
split-complementary
#9C8F31 #31749C #59319C
monochromatic
#3F3A14 #6D6422 #9C8F31 #C5B545 #D3C874

Accessibility & contrast

On white

3.29
#9C8F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#9C8F31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8F31
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8F31#FFFFFF#000000##000000
##9C8F311.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8B24
Deuteranopia (green-blind)
#A09037
Tritanopia (blue-blind)
#A8857C
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9c8f31;
/* rgb */ color: rgb(156, 143, 49);
/* oklch */ color: oklch(64.4% 0.114 101.4);
Tailwind
colors: {
  custom: {
    50: '#bcaf6e',
    500: '#9c8f31',
    950: '#000000',
  },
}
SCSS
$custom: #9c8f31;
$custom-light: #bcaf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8f31",
  "rgb": {
    "r": 156,
    "g": 143,
    "b": 49
  },
  "hsl": {
    "h": 52.71,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.6436,
    "c": 0.11385,
    "h": 101.4
  },
  "luminance": 0.26935
}

Semantic roles & 50–950 ramp

primary
#9C8F31
secondary
#6D77BB
accent
#5EDC4C
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8F31

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

Preview Lab → · Contrast checker → · Palette generator →

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