#9D8A3B#9D8A3B

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

Color values

HEX#9D8A3B
RGBrgb(157, 138, 59)
HSLhsl(48, 45%, 42%)
HSVhsv(48, 62%, 62%)
CMYKcmyk(0%, 12.1%, 62.4%, 38.4%)
CIE-LABlab(57.71, -2.66, 43.90)
CIE-LCHlch(57.71, 43.98, 93.47°)
OKLaboklab(63.46% -0.0103 0.1009)
OKLCHoklch(63.46% 0.101 95.8)
XYZxyz(23.7835, 25.6620, 7.8373)
Luminance0.2566 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A3B #3B4E9D
analogous
#9D593B #9D8A3B #7F9D3B
triadic
#9D8A3B #3B9D8A #8A3B9D
tetradic
#9D8A3B #3B9D59 #3B4E9D #9D3B7F
square
#9D8A3B #3B9D59 #3B4E9D #9D3B7F
split-complementary
#9D8A3B #3B7F9D #593B9D
monochromatic
#443C1A #71632A #9D8A3B #BFAB56 #D0C182

Accessibility & contrast

On white

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

On black

6.13
#9D8A3B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8A3B
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8A3B#FFFFFF#000000##000000
##9D8A3B1.003.426.136.13
#FFFFFF3.421.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978732
Deuteranopia (green-blind)
#9C8D3F
Tritanopia (blue-blind)
#A98079
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8a3b;
/* rgb */ color: rgb(157, 138, 59);
/* oklch */ color: oklch(63.5% 0.101 95.8);
Tailwind
colors: {
  custom: {
    50: '#bdab74',
    500: '#9d8a3b',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a3b;
$custom-light: #bdab74;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a3b",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 59
  },
  "hsl": {
    "h": 48.367,
    "s": 45.37,
    "l": 42.353
  },
  "oklch": {
    "l": 0.6346,
    "c": 0.10144,
    "h": 95.8
  },
  "luminance": 0.25661
}

Semantic roles & 50–950 ramp

primary
#9D8A3B
secondary
#7A86BA
accent
#6CD553
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9D8A3B

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

Preview Lab → · Contrast checker → · Palette generator →

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