#9D8A31#9D8A31

#9D8A31 is a light, moderate yellow. Relative luminance 0.256; OKLCH L 63.4% C 0.110 H 97.0°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9D8A31
RGBrgb(157, 138, 49)
HSLhsl(49, 52%, 40%)
HSVhsv(49, 69%, 62%)
CMYKcmyk(0%, 12.1%, 68.8%, 38.4%)
CIE-LABlab(57.62, -3.31, 48.38)
CIE-LCHlch(57.62, 48.49, 93.92°)
OKLaboklab(63.36% -0.0134 0.1088)
OKLCHoklch(63.36% 0.11 97)
XYZxyz(23.5486, 25.5680, 6.5999)
Luminance0.2557 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A31 #31449D
analogous
#9D5431 #9D8A31 #7A9D31
triadic
#9D8A31 #319D8A #8A319D
tetradic
#9D8A31 #319D54 #31449D #9D317A
square
#9D8A31 #319D54 #31449D #9D317A
split-complementary
#9D8A31 #317A9D #54319D
monochromatic
#403814 #6E6122 #9D8A31 #C5AF46 #D4C375

Accessibility & contrast

On white

3.44
#9D8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#9D8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8A31
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8A31#FFFFFF#000000##000000
##9D8A311.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#988725
Deuteranopia (green-blind)
#9D8D36
Tritanopia (blue-blind)
#A98078
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a31;
/* rgb */ color: rgb(157, 138, 49);
/* oklch */ color: oklch(63.4% 0.110 97.0);
Tailwind
colors: {
  custom: {
    50: '#bdab6e',
    500: '#9d8a31',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a31;
$custom-light: #bdab6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a31",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 49.444,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.6336,
    "c": 0.10966,
    "h": 97
  },
  "luminance": 0.25567
}

Semantic roles & 50–950 ramp

primary
#9D8A31
secondary
#6E7CBC
accent
#65DC4C
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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