#9C8D51#9C8D51

#9C8D51 is a light, moderate yellow. Relative luminance 0.267; OKLCH L 64.3% C 0.082 H 95.7°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9C8D51
RGBrgb(156, 141, 81)
HSLhsl(48, 32%, 46%)
HSVhsv(48, 48%, 61%)
CMYKcmyk(0%, 9.6%, 48.1%, 38.8%)
CIE-LABlab(58.71, -2.85, 33.89)
CIE-LCHlch(58.71, 34.01, 94.81°)
OKLaboklab(64.31% -0.0082 0.0815)
OKLCHoklch(64.31% 0.082 95.7)
XYZxyz(24.7211, 26.7127, 11.6369)
Luminance0.2671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8D51 #51609C
analogous
#9C6851 #9C8D51 #869C51
triadic
#9C8D51 #519C8D #8D519C
tetradic
#9C8D51 #519C68 #51609C #9C5186
square
#9C8D51 #519C68 #51609C #9C5186
split-complementary
#9C8D51 #51869C #68519C
monochromatic
#4B4427 #74693C #9C8D51 #B7A974 #CCC29C

Accessibility & contrast

On white

3.31
#9C8D51 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#9C8D51 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8D51
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8D51#FFFFFF#000000##000000
##9C8D511.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988A4C
Deuteranopia (green-blind)
#9C8F53
Tritanopia (blue-blind)
#A6857F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9c8d51;
/* rgb */ color: rgb(156, 141, 81);
/* oklch */ color: oklch(64.3% 0.082 95.7);
Tailwind
colors: {
  custom: {
    50: '#bbae83',
    500: '#9c8d51',
    950: '#000000',
  },
}
SCSS
$custom: #9c8d51;
$custom-light: #bbae83;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8d51",
  "rgb": {
    "r": 156,
    "g": 141,
    "b": 81
  },
  "hsl": {
    "h": 48,
    "s": 31.646,
    "l": 46.471
  },
  "oklch": {
    "l": 0.64307,
    "c": 0.08188,
    "h": 95.7
  },
  "luminance": 0.26712
}

Semantic roles & 50–950 ramp

primary
#9C8D51
secondary
#9098B8
accent
#75C860
background
#FBFAF8
surface
#F6F4EF
border
#D0CECA
text
#12100B
muted
#817F7C

Preview Lab

Preview with #9C8D51

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

Preview Lab → · Contrast checker → · Palette generator →

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