#9C8126#9C8126

#9C8126 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.2% C 0.111 H 91.7°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#9C8126
RGBrgb(156, 129, 38)
HSLhsl(46, 61%, 38%)
HSVhsv(46, 76%, 61%)
CMYKcmyk(0%, 17.3%, 75.6%, 38.8%)
CIE-LABlab(54.98, 0.64, 50.28)
CIE-LCHlch(54.98, 50.28, 89.27°)
OKLaboklab(61.22% -0.0033 0.1108)
OKLCHoklch(61.22% 0.111 91.7)
XYZxyz(21.9116, 22.9097, 5.1012)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8126 #26419C
analogous
#9C4626 #9C8126 #7C9C26
triadic
#9C8126 #269C81 #81269C
tetradic
#9C8126 #269C46 #26419C #9C267C
square
#9C8126 #269C46 #26419C #9C267C
split-complementary
#9C8126 #267C9C #46269C
monochromatic
#3A300E #6B581A #9C8126 #CDAA32 #D9BE63

Accessibility & contrast

On white

3.76
#9C8126 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#9C8126 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8126
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8126#FFFFFF#000000##000000
##9C81261.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F17
Deuteranopia (green-blind)
#96872B
Tritanopia (blue-blind)
#A9766F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9c8126;
/* rgb */ color: rgb(156, 129, 38);
/* oklch */ color: oklch(61.2% 0.111 91.7);
Tailwind
colors: {
  custom: {
    50: '#bda567',
    500: '#9c8126',
    950: '#000000',
  },
}
SCSS
$custom: #9c8126;
$custom-light: #bda567;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8126",
  "rgb": {
    "r": 156,
    "g": 129,
    "b": 38
  },
  "hsl": {
    "h": 46.271,
    "s": 60.825,
    "l": 38.039
  },
  "oklch": {
    "l": 0.61219,
    "c": 0.11086,
    "h": 91.7
  },
  "luminance": 0.22908
}

Semantic roles & 50–950 ramp

primary
#9C8126
secondary
#5F75BF
accent
#68E444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9C8126

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

Preview Lab → · Contrast checker → · Palette generator →

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