#9D8A3A#9D8A3A

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

Color values

HEX#9D8A3A
RGBrgb(157, 138, 58)
HSLhsl(48, 46%, 42%)
HSVhsv(48, 63%, 62%)
CMYKcmyk(0%, 12.1%, 63.1%, 38.4%)
CIE-LABlab(57.70, -2.73, 44.36)
CIE-LCHlch(57.70, 44.45, 93.52°)
OKLaboklab(63.45% -0.0106 0.1018)
OKLCHoklch(63.45% 0.102 96)
XYZxyz(23.7579, 25.6517, 7.7020)
Luminance0.2565 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A3A #3A4D9D
analogous
#9D593A #9D8A3A #7F9D3A
triadic
#9D8A3A #3A9D8A #8A3A9D
tetradic
#9D8A3A #3A9D59 #3A4D9D #9D3A7F
square
#9D8A3A #3A9D59 #3A4D9D #9D3A7F
split-complementary
#9D8A3A #3A7F9D #593A9D
monochromatic
#443B19 #706329 #9D8A3A #C0AB54 #D0C181

Accessibility & contrast

On white

3.43
#9D8A3A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8A3A#FFFFFF#000000##000000
##9D8A3A1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d8a3a;
/* rgb */ color: rgb(157, 138, 58);
/* oklch */ color: oklch(63.4% 0.102 96.0);
Tailwind
colors: {
  custom: {
    50: '#bdab74',
    500: '#9d8a3a',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a3a;
$custom-light: #bdab74;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a3a",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 58
  },
  "hsl": {
    "h": 48.485,
    "s": 46.047,
    "l": 42.157
  },
  "oklch": {
    "l": 0.63449,
    "c": 0.10232,
    "h": 96
  },
  "luminance": 0.25651
}

Semantic roles & 50–950 ramp

primary
#9D8A3A
secondary
#7985BA
accent
#6BD652
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9D8A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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