#9D8A3F#9D8A3F

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

Color values

HEX#9D8A3F
RGBrgb(157, 138, 63)
HSLhsl(48, 43%, 43%)
HSVhsv(48, 60%, 62%)
CMYKcmyk(0%, 12.1%, 59.9%, 38.4%)
CIE-LABlab(57.76, -2.36, 42.01)
CIE-LCHlch(57.76, 42.08, 93.22°)
OKLaboklab(63.51% -0.0089 0.0974)
OKLCHoklch(63.51% 0.098 95.2)
XYZxyz(23.8913, 25.7051, 8.4048)
Luminance0.2570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A3F #3F529D
analogous
#9D5B3F #9D8A3F #819D3F
triadic
#9D8A3F #3F9D8A #8A3F9D
tetradic
#9D8A3F #3F9D5B #3F529D #9D3F81
square
#9D8A3F #3F9D5B #3F529D #9D3F81
split-complementary
#9D8A3F #3F819D #5B3F9D
monochromatic
#463D1C #71642D #9D8A3F #BDAA5C #CFC187

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8A3F#FFFFFF#000000##000000
##9D8A3F1.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)
#978737
Deuteranopia (green-blind)
#9C8D42
Tritanopia (blue-blind)
#A98079
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8a3f;
/* rgb */ color: rgb(157, 138, 63);
/* oklch */ color: oklch(63.5% 0.098 95.2);
Tailwind
colors: {
  custom: {
    50: '#bcab77',
    500: '#9d8a3f',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a3f;
$custom-light: #bcab77;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a3f",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 63
  },
  "hsl": {
    "h": 47.872,
    "s": 42.727,
    "l": 43.137
  },
  "oklch": {
    "l": 0.63506,
    "c": 0.09783,
    "h": 95.2
  },
  "luminance": 0.25704
}

Semantic roles & 50–950 ramp

primary
#9D8A3F
secondary
#7E8ABA
accent
#6FD355
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9D8A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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