#9C8128#9C8128

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

Color values

HEX#9C8128
RGBrgb(156, 129, 40)
HSLhsl(46, 59%, 38%)
HSVhsv(46, 74%, 61%)
CMYKcmyk(0%, 17.3%, 74.4%, 38.8%)
CIE-LABlab(54.99, 0.73, 49.49)
CIE-LCHlch(54.99, 49.49, 89.15°)
OKLaboklab(61.23% -0.0028 0.1095)
OKLCHoklch(61.23% 0.11 91.5)
XYZxyz(21.9448, 22.9230, 5.2758)
Luminance0.2292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8128 #28439C
analogous
#9C4728 #9C8128 #7D9C28
triadic
#9C8128 #289C81 #81289C
tetradic
#9C8128 #289C47 #28439C #9C287D
square
#9C8128 #289C47 #28439C #9C287D
split-complementary
#9C8128 #287D9C #47289C
monochromatic
#3B300F #6B591C #9C8128 #CBA936 #D8BE67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C8128#FFFFFF#000000##000000
##9C81281.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)
#907F1A
Deuteranopia (green-blind)
#96872D
Tritanopia (blue-blind)
#A9766F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9c8128;
/* rgb */ color: rgb(156, 129, 40);
/* oklch */ color: oklch(61.2% 0.110 91.5);
Tailwind
colors: {
  custom: {
    50: '#bda568',
    500: '#9c8128',
    950: '#000000',
  },
}
SCSS
$custom: #9c8128;
$custom-light: #bda568;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8128",
  "rgb": {
    "r": 156,
    "g": 129,
    "b": 40
  },
  "hsl": {
    "h": 46.034,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.61234,
    "c": 0.10958,
    "h": 91.5
  },
  "luminance": 0.22922
}

Semantic roles & 50–950 ramp

primary
#9C8128
secondary
#6277BE
accent
#6AE245
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9C8128

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

Preview Lab → · Contrast checker → · Palette generator →

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