#9C8E40#9C8E40

#9C8E40 is a light, moderate yellow. Relative luminance 0.268; OKLCH L 64.3% C 0.100 H 99.3°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9C8E40
RGBrgb(156, 142, 64)
HSLhsl(51, 42%, 43%)
HSVhsv(51, 59%, 61%)
CMYKcmyk(0%, 9%, 59%, 38.8%)
CIE-LABlab(58.77, -4.92, 42.65)
CIE-LCHlch(58.77, 42.93, 96.58°)
OKLaboklab(64.29% -0.0161 0.099)
OKLCHoklch(64.29% 0.1 99.3)
XYZxyz(24.3096, 26.7851, 8.7390)
Luminance0.2678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8E40 #404E9C
analogous
#9C6040 #9C8E40 #7C9C40
triadic
#9C8E40 #409C8E #8E409C
tetradic
#9C8E40 #409C60 #404E9C #9C407C
square
#9C8E40 #409C60 #404E9C #9C407C
split-complementary
#9C8E40 #407C9C #60409C
monochromatic
#453F1C #71662E #9C8E40 #BCAE5D #CEC488

Accessibility & contrast

On white

3.30
#9C8E40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#9C8E40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8E40
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8E40#FFFFFF#000000##000000
##9C8E401.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8A38
Deuteranopia (green-blind)
#9E9044
Tritanopia (blue-blind)
#A7857D
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9c8e40;
/* rgb */ color: rgb(156, 142, 64);
/* oklch */ color: oklch(64.3% 0.100 99.3);
Tailwind
colors: {
  custom: {
    50: '#bcae78',
    500: '#9c8e40',
    950: '#000000',
  },
}
SCSS
$custom: #9c8e40;
$custom-light: #bcae78;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8e40",
  "rgb": {
    "r": 156,
    "g": 142,
    "b": 64
  },
  "hsl": {
    "h": 50.87,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.64293,
    "c": 0.10025,
    "h": 99.3
  },
  "luminance": 0.26784
}

Semantic roles & 50–950 ramp

primary
#9C8E40
secondary
#7F88B9
accent
#69D256
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9C8E40

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

Preview Lab → · Contrast checker → · Palette generator →

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