#9C8B2F#9C8B2F

#9C8B2F is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.112 H 98.6°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9C8B2F
RGBrgb(156, 139, 47)
HSLhsl(51, 54%, 40%)
HSVhsv(51, 70%, 61%)
CMYKcmyk(0%, 10.9%, 69.9%, 38.8%)
CIE-LABlab(57.79, -4.43, 49.37)
CIE-LCHlch(57.79, 49.57, 95.12°)
OKLaboklab(63.46% -0.0168 0.1106)
OKLCHoklch(63.46% 0.112 98.6)
XYZxyz(23.4571, 25.7395, 6.4214)
Luminance0.2574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8B2F #2F409C
analogous
#9C542F #9C8B2F #779C2F
triadic
#9C8B2F #2F9C8B #8B2F9C
tetradic
#9C8B2F #2F9C54 #2F409C #9C2F77
square
#9C8B2F #2F9C54 #2F409C #9C2F77
split-complementary
#9C8B2F #2F779C #542F9C
monochromatic
#3E3713 #6D6121 #9C8B2F #C6B242 #D4C571

Accessibility & contrast

On white

3.42
#9C8B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#9C8B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8B2F
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8B2F#FFFFFF#000000##000000
##9C8B2F1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998722
Deuteranopia (green-blind)
#9D8D34
Tritanopia (blue-blind)
#A88178
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9c8b2f;
/* rgb */ color: rgb(156, 139, 47);
/* oklch */ color: oklch(63.5% 0.112 98.6);
Tailwind
colors: {
  custom: {
    50: '#bcac6d',
    500: '#9c8b2f',
    950: '#000000',
  },
}
SCSS
$custom: #9c8b2f;
$custom-light: #bcac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8b2f",
  "rgb": {
    "r": 156,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 50.642,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.63462,
    "c": 0.11189,
    "h": 98.6
  },
  "luminance": 0.25738
}

Semantic roles & 50–950 ramp

primary
#9C8B2F
secondary
#6B78BC
accent
#62DD4B
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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