#9C8D40#9C8D40

#9C8D40 is a light, moderate yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.099 H 98.4°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9C8D40
RGBrgb(156, 141, 64)
HSLhsl(50, 42%, 43%)
HSVhsv(50, 59%, 61%)
CMYKcmyk(0%, 9.6%, 59%, 38.8%)
CIE-LABlab(58.50, -4.38, 42.34)
CIE-LCHlch(58.50, 42.56, 95.90°)
OKLaboklab(64.07% -0.0145 0.0983)
OKLCHoklch(64.07% 0.099 98.4)
XYZxyz(24.1615, 26.4889, 8.6897)
Luminance0.2649 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8D40 #404F9C
analogous
#9C5F40 #9C8D40 #7D9C40
triadic
#9C8D40 #409C8D #8D409C
tetradic
#9C8D40 #409C5F #404F9C #9C407D
square
#9C8D40 #409C5F #404F9C #9C407D
split-complementary
#9C8D40 #407D9C #5F409C
monochromatic
#453F1C #71662E #9C8D40 #BCAD5D #CEC388

Accessibility & contrast

On white

3.33
#9C8D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9C8D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8D40
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8D40#FFFFFF#000000##000000
##9C8D401.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998A38
Deuteranopia (green-blind)
#9E8F44
Tritanopia (blue-blind)
#A7847C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9c8d40;
/* rgb */ color: rgb(156, 141, 64);
/* oklch */ color: oklch(64.1% 0.099 98.4);
Tailwind
colors: {
  custom: {
    50: '#bcae78',
    500: '#9c8d40',
    950: '#000000',
  },
}
SCSS
$custom: #9c8d40;
$custom-light: #bcae78;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8d40",
  "rgb": {
    "r": 156,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 50.217,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.64074,
    "c": 0.09934,
    "h": 98.4
  },
  "luminance": 0.26488
}

Semantic roles & 50–950 ramp

primary
#9C8D40
secondary
#7F88B9
accent
#6AD256
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9C8D40

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

Preview Lab → · Contrast checker → · Palette generator →

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