#9D8A3E#9D8A3E

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

Color values

HEX#9D8A3E
RGBrgb(157, 138, 62)
HSLhsl(48, 43%, 43%)
HSVhsv(48, 61%, 62%)
CMYKcmyk(0%, 12.1%, 60.5%, 38.4%)
CIE-LABlab(57.75, -2.44, 42.49)
CIE-LCHlch(57.75, 42.56, 93.29°)
OKLaboklab(63.49% -0.0093 0.0983)
OKLCHoklch(63.49% 0.099 95.4)
XYZxyz(23.8636, 25.6940, 8.2589)
Luminance0.2569 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A3E #3E519D
analogous
#9D5A3E #9D8A3E #809D3E
triadic
#9D8A3E #3E9D8A #8A3E9D
tetradic
#9D8A3E #3E9D5A #3E519D #9D3E80
square
#9D8A3E #3E9D5A #3E519D #9D3E80
split-complementary
#9D8A3E #3E809D #5A3E9D
monochromatic
#453D1B #71632D #9D8A3E #BEAA5A #CFC186

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8A3E#FFFFFF#000000##000000
##9D8A3E1.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)
#978736
Deuteranopia (green-blind)
#9C8D41
Tritanopia (blue-blind)
#A98079
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8a3e;
/* rgb */ color: rgb(157, 138, 62);
/* oklch */ color: oklch(63.5% 0.099 95.4);
Tailwind
colors: {
  custom: {
    50: '#bcab76',
    500: '#9d8a3e',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a3e;
$custom-light: #bcab76;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a3e",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 62
  },
  "hsl": {
    "h": 48,
    "s": 43.379,
    "l": 42.941
  },
  "oklch": {
    "l": 0.63494,
    "c": 0.09875,
    "h": 95.4
  },
  "luminance": 0.25693
}

Semantic roles & 50–950 ramp

primary
#9D8A3E
secondary
#7D89BA
accent
#6ED355
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9D8A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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