#9C8B28#9C8B28

#9C8B28 is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.4% C 0.117 H 99.2°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9C8B28
RGBrgb(156, 139, 40)
HSLhsl(51, 59%, 38%)
HSVhsv(51, 74%, 61%)
CMYKcmyk(0%, 10.9%, 74.4%, 38.8%)
CIE-LABlab(57.74, -4.79, 52.16)
CIE-LCHlch(57.74, 52.38, 95.25°)
OKLaboklab(63.41% -0.0186 0.1152)
OKLCHoklch(63.41% 0.117 99.2)
XYZxyz(23.3270, 25.6875, 5.7365)
Luminance0.2569 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8B28 #28399C
analogous
#9C5128 #9C8B28 #739C28
triadic
#9C8B28 #289C8B #8B289C
tetradic
#9C8B28 #289C51 #28399C #9C2873
square
#9C8B28 #289C51 #28399C #9C2873
split-complementary
#9C8B28 #28739C #51289C
monochromatic
#3B340F #6B601C #9C8B28 #CBB536 #D8C767

Accessibility & contrast

On white

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

On black

6.14
#9C8B28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8B28
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8B28#FFFFFF#000000##000000
##9C8B281.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998717
Deuteranopia (green-blind)
#9D8D2E
Tritanopia (blue-blind)
#A88078
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9c8b28;
/* rgb */ color: rgb(156, 139, 40);
/* oklch */ color: oklch(63.4% 0.117 99.2);
Tailwind
colors: {
  custom: {
    50: '#bdac69',
    500: '#9c8b28',
    950: '#000000',
  },
}
SCSS
$custom: #9c8b28;
$custom-light: #bdac69;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8b28",
  "rgb": {
    "r": 156,
    "g": 139,
    "b": 40
  },
  "hsl": {
    "h": 51.207,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63407,
    "c": 0.1167,
    "h": 99.2
  },
  "luminance": 0.25686
}

Semantic roles & 50–950 ramp

primary
#9C8B28
secondary
#626FBE
accent
#5CE245
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8B28

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

Preview Lab → · Contrast checker → · Palette generator →

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