#9E8331#9E8331

#9E8331 is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 62.0% C 0.105 H 90.6°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#9E8331
RGBrgb(158, 131, 49)
HSLhsl(45, 53%, 41%)
HSVhsv(45, 69%, 62%)
CMYKcmyk(0%, 17.1%, 69%, 38%)
CIE-LABlab(55.81, 1.02, 46.52)
CIE-LCHlch(55.81, 46.53, 88.75°)
OKLaboklab(61.95% -0.001 0.1049)
OKLCHoklch(61.95% 0.105 90.6)
XYZxyz(22.7724, 23.7248, 6.2850)
Luminance0.2372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8331 #314C9E
analogous
#9E4D31 #9E8331 #829E31
triadic
#9E8331 #319E83 #83319E
tetradic
#9E8331 #319E4D #314C9E #9E3182
square
#9E8331 #319E4D #314C9E #9E3182
split-complementary
#9E8331 #31829E #4D319E
monochromatic
#413614 #6F5C23 #9E8331 #C6A646 #D4BD75

Accessibility & contrast

On white

3.66
#9E8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#9E8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8331
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8331#FFFFFF#000000##000000
##9E83311.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918127
Deuteranopia (green-blind)
#988935
Tritanopia (blue-blind)
#AB7872
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9e8331;
/* rgb */ color: rgb(158, 131, 49);
/* oklch */ color: oklch(62.0% 0.105 90.6);
Tailwind
colors: {
  custom: {
    50: '#bea66d',
    500: '#9e8331',
    950: '#000000',
  },
}
SCSS
$custom: #9e8331;
$custom-light: #bea66d;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8331",
  "rgb": {
    "r": 158,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 45.138,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.6195,
    "c": 0.10489,
    "h": 90.6
  },
  "luminance": 0.23723
}

Semantic roles & 50–950 ramp

primary
#9E8331
secondary
#6E82BC
accent
#6FDC4C
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#130F07
muted
#827F7A

Preview Lab

Preview with #9E8331

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

Preview Lab → · Contrast checker → · Palette generator →

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