#9D8331#9D8331

#9D8331 is a mid, moderate yellow. Relative luminance 0.236; OKLCH L 61.8% C 0.105 H 91.3°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#9D8331
RGBrgb(157, 131, 49)
HSLhsl(46, 52%, 40%)
HSVhsv(46, 69%, 62%)
CMYKcmyk(0%, 16.6%, 68.8%, 38.4%)
CIE-LABlab(55.71, 0.56, 46.38)
CIE-LCHlch(55.71, 46.38, 89.30°)
OKLaboklab(61.85% -0.0023 0.1046)
OKLCHoklch(61.85% 0.105 91.3)
XYZxyz(22.5765, 23.6237, 6.2758)
Luminance0.2362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8331 #314B9D
analogous
#9D4D31 #9D8331 #819D31
triadic
#9D8331 #319D83 #83319D
tetradic
#9D8331 #319D4D #314B9D #9D3181
square
#9D8331 #319D4D #314B9D #9D3181
split-complementary
#9D8331 #31819D #4D319D
monochromatic
#403514 #6E5C22 #9D8331 #C5A746 #D4BD75

Accessibility & contrast

On white

3.67
#9D8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#9D8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8331
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8331#FFFFFF#000000##000000
##9D83311.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d8331;
/* rgb */ color: rgb(157, 131, 49);
/* oklch */ color: oklch(61.8% 0.105 91.3);
Tailwind
colors: {
  custom: {
    50: '#bda66d',
    500: '#9d8331',
    950: '#000000',
  },
}
SCSS
$custom: #9d8331;
$custom-light: #bda66d;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8331",
  "rgb": {
    "r": 157,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 45.556,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.61846,
    "c": 0.10465,
    "h": 91.3
  },
  "luminance": 0.23622
}

Semantic roles & 50–950 ramp

primary
#9D8331
secondary
#6E81BC
accent
#6FDC4C
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9D8331

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

Preview Lab → · Contrast checker → · Palette generator →

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