#9E8A31#9E8A31

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

Color values

HEX#9E8A31
RGBrgb(158, 138, 49)
HSLhsl(49, 53%, 41%)
HSVhsv(49, 69%, 62%)
CMYKcmyk(0%, 12.7%, 69%, 38%)
CIE-LABlab(57.72, -2.86, 48.51)
CIE-LCHlch(57.72, 48.59, 93.38°)
OKLaboklab(63.46% -0.0122 0.1091)
OKLCHoklch(63.46% 0.11 96.4)
XYZxyz(23.7445, 25.6690, 6.6091)
Luminance0.2567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8A31 #31459E
analogous
#9E5331 #9E8A31 #7B9E31
triadic
#9E8A31 #319E8A #8A319E
tetradic
#9E8A31 #319E53 #31459E #9E317B
square
#9E8A31 #319E53 #31459E #9E317B
split-complementary
#9E8A31 #317B9E #53319E
monochromatic
#413814 #6F6123 #9E8A31 #C6AE46 #D4C375

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8A31#FFFFFF#000000##000000
##9E8A311.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)
#988725
Deuteranopia (green-blind)
#9D8D36
Tritanopia (blue-blind)
#AA8078
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8a31;
/* rgb */ color: rgb(158, 138, 49);
/* oklch */ color: oklch(63.5% 0.110 96.4);
Tailwind
colors: {
  custom: {
    50: '#beab6e',
    500: '#9e8a31',
    950: '#000000',
  },
}
SCSS
$custom: #9e8a31;
$custom-light: #beab6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8a31",
  "rgb": {
    "r": 158,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 48.991,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.63459,
    "c": 0.10976,
    "h": 96.4
  },
  "luminance": 0.25668
}

Semantic roles & 50–950 ramp

primary
#9E8A31
secondary
#6E7DBC
accent
#66DC4C
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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