#8B8331#8B8331

#8B8331 is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 60.1% C 0.103 H 103.7°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8B8331
RGBrgb(139, 131, 49)
HSLhsl(55, 48%, 37%)
HSVhsv(55, 65%, 55%)
CMYKcmyk(0%, 5.8%, 64.7%, 45.5%)
CIE-LABlab(53.97, -7.60, 44.01)
CIE-LCHlch(53.97, 44.66, 99.80°)
OKLaboklab(60.06% -0.0245 0.1002)
OKLCHoklch(60.06% 0.103 103.7)
XYZxyz(19.3189, 21.9440, 6.1231)
Luminance0.2194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8331 #31398B
analogous
#8B5631 #8B8331 #668B31
triadic
#8B8331 #318B83 #83318B
tetradic
#8B8331 #318B56 #31398B #8B3166
square
#8B8331 #318B56 #31398B #8B3166
split-complementary
#8B8331 #31668B #56318B
monochromatic
#312E11 #5E5821 #8B8331 #B8AE41 #CBC26B

Accessibility & contrast

On white

3.90
#8B8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#8B8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8331
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8331#FFFFFF#000000##000000
##8B83311.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7F27
Deuteranopia (green-blind)
#918336
Tritanopia (blue-blind)
#957A72
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8b8331;
/* rgb */ color: rgb(139, 131, 49);
/* oklch */ color: oklch(60.1% 0.103 103.7);
Tailwind
colors: {
  custom: {
    50: '#afa66d',
    500: '#8b8331',
    950: '#000000',
  },
}
SCSS
$custom: #8b8331;
$custom-light: #afa66d;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8331",
  "rgb": {
    "r": 139,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 54.667,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60055,
    "c": 0.10311,
    "h": 103.7
  },
  "luminance": 0.21943
}

Semantic roles & 50–950 ramp

primary
#8B8331
secondary
#656CB2
accent
#5CD750
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8B8331

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

Preview Lab → · Contrast checker → · Palette generator →

#8B8331 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva