#9C8D2F#9C8D2F

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

Color values

HEX#9C8D2F
RGBrgb(156, 141, 47)
HSLhsl(52, 54%, 40%)
HSVhsv(52, 70%, 61%)
CMYKcmyk(0%, 9.6%, 69.9%, 38.8%)
CIE-LABlab(58.34, -5.52, 49.94)
CIE-LCHlch(58.34, 50.24, 96.31°)
OKLaboklab(63.9% -0.0199 0.1118)
OKLCHoklch(63.9% 0.114 100.1)
XYZxyz(23.7493, 26.3240, 6.5188)
Luminance0.2632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8D2F #2F3E9C
analogous
#9C562F #9C8D2F #759C2F
triadic
#9C8D2F #2F9C8D #8D2F9C
tetradic
#9C8D2F #2F9C56 #2F3E9C #9C2F75
square
#9C8D2F #2F9C56 #2F3E9C #9C2F75
split-complementary
#9C8D2F #2F759C #562F9C
monochromatic
#3E3813 #6D6221 #9C8D2F #C6B442 #D4C771

Accessibility & contrast

On white

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

On black

6.26
#9C8D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8D2F
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8D2F#FFFFFF#000000##000000
##9C8D2F1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c8d2f;
/* rgb */ color: rgb(156, 141, 47);
/* oklch */ color: oklch(63.9% 0.114 100.1);
Tailwind
colors: {
  custom: {
    50: '#bcae6d',
    500: '#9c8d2f',
    950: '#000000',
  },
}
SCSS
$custom: #9c8d2f;
$custom-light: #bcae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8d2f",
  "rgb": {
    "r": 156,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 51.743,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.63902,
    "c": 0.11357,
    "h": 100.1
  },
  "luminance": 0.26323
}

Semantic roles & 50–950 ramp

primary
#9C8D2F
secondary
#6B76BC
accent
#5FDD4B
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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