#9A8331#9A8331

#9A8331 is a mid, moderate yellow. Relative luminance 0.233; OKLCH L 61.5% C 0.104 H 93.3°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#9A8331
RGBrgb(154, 131, 49)
HSLhsl(47, 52%, 40%)
HSVhsv(47, 68%, 60%)
CMYKcmyk(0%, 14.9%, 68.2%, 39.6%)
CIE-LABlab(55.41, -0.80, 45.97)
CIE-LCHlch(55.41, 45.98, 91.00°)
OKLaboklab(61.54% -0.006 0.1039)
OKLCHoklch(61.54% 0.104 93.3)
XYZxyz(21.9982, 23.3256, 6.2487)
Luminance0.2332 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8331 #31489A
analogous
#9A4E31 #9A8331 #7D9A31
triadic
#9A8331 #319A83 #83319A
tetradic
#9A8331 #319A4E #31489A #9A317D
square
#9A8331 #319A4E #31489A #9A317D
split-complementary
#9A8331 #317D9A #4E319A
monochromatic
#3D3413 #6C5C22 #9A8331 #C4A845 #D2BE73

Accessibility & contrast

On white

3.71
#9A8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#9A8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8331
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8331#FFFFFF#000000##000000
##9A83311.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918127
Deuteranopia (green-blind)
#968835
Tritanopia (blue-blind)
#A67972
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9a8331;
/* rgb */ color: rgb(154, 131, 49);
/* oklch */ color: oklch(61.5% 0.104 93.3);
Tailwind
colors: {
  custom: {
    50: '#bba66d',
    500: '#9a8331',
    950: '#000000',
  },
}
SCSS
$custom: #9a8331;
$custom-light: #bba66d;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8331",
  "rgb": {
    "r": 154,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 46.857,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.61536,
    "c": 0.10402,
    "h": 93.3
  },
  "luminance": 0.23324
}

Semantic roles & 50–950 ramp

primary
#9A8331
secondary
#6C7EBA
accent
#6CDB4D
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9A8331

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

Preview Lab → · Contrast checker → · Palette generator →

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