#9C8A40#9C8A40

#9C8A40 is a light, moderate yellow. Relative luminance 0.256; OKLCH L 63.4% C 0.097 H 95.8°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9C8A40
RGBrgb(156, 138, 64)
HSLhsl(48, 42%, 43%)
HSVhsv(48, 59%, 61%)
CMYKcmyk(0%, 11.5%, 59%, 38.8%)
CIE-LABlab(57.67, -2.73, 41.39)
CIE-LCHlch(57.67, 41.48, 93.77°)
OKLaboklab(63.42% -0.0098 0.0962)
OKLCHoklch(63.42% 0.097 95.8)
XYZxyz(23.7251, 25.6161, 8.5442)
Luminance0.2561 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8A40 #40529C
analogous
#9C5C40 #9C8A40 #809C40
triadic
#9C8A40 #409C8A #8A409C
tetradic
#9C8A40 #409C5C #40529C #9C4080
square
#9C8A40 #409C5C #40529C #9C4080
split-complementary
#9C8A40 #40809C #5C409C
monochromatic
#453D1C #71642E #9C8A40 #BCAA5D #CEC188

Accessibility & contrast

On white

3.43
#9C8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#9C8A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8A40
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8A40#FFFFFF#000000##000000
##9C8A401.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978739
Deuteranopia (green-blind)
#9B8D43
Tritanopia (blue-blind)
#A78179
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9c8a40;
/* rgb */ color: rgb(156, 138, 64);
/* oklch */ color: oklch(63.4% 0.097 95.8);
Tailwind
colors: {
  custom: {
    50: '#bcab77',
    500: '#9c8a40',
    950: '#000000',
  },
}
SCSS
$custom: #9c8a40;
$custom-light: #bcab77;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8a40",
  "rgb": {
    "r": 156,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 48.261,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.63419,
    "c": 0.09674,
    "h": 95.8
  },
  "luminance": 0.25615
}

Semantic roles & 50–950 ramp

primary
#9C8A40
secondary
#7F8AB9
accent
#6ED256
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9C8A40

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

Preview Lab → · Contrast checker → · Palette generator →

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