#8A8331#8A8331

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

Color values

HEX#8A8331
RGBrgb(138, 131, 49)
HSLhsl(55, 48%, 37%)
HSVhsv(55, 64%, 54%)
CMYKcmyk(0%, 5.1%, 64.5%, 45.9%)
CIE-LABlab(53.88, -8.06, 43.88)
CIE-LCHlch(53.88, 44.62, 100.40°)
OKLaboklab(59.96% -0.0257 0.0999)
OKLCHoklch(59.96% 0.103 104.4)
XYZxyz(19.1526, 21.8583, 6.1153)
Luminance0.2186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8331 #31388A
analogous
#8A5731 #8A8331 #658A31
triadic
#8A8331 #318A83 #83318A
tetradic
#8A8331 #318A57 #31388A #8A3165
square
#8A8331 #318A57 #31388A #8A3165
split-complementary
#8A8331 #31658A #57318A
monochromatic
#302D11 #5D5821 #8A8331 #B7AE41 #CAC36B

Accessibility & contrast

On white

3.91
#8A8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#8A8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8331
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8331#FFFFFF#000000##000000
##8A83311.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a8331;
/* rgb */ color: rgb(138, 131, 49);
/* oklch */ color: oklch(60.0% 0.103 104.4);
Tailwind
colors: {
  custom: {
    50: '#afa66d',
    500: '#8a8331',
    950: '#000000',
  },
}
SCSS
$custom: #8a8331;
$custom-light: #afa66d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8331",
  "rgb": {
    "r": 138,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 55.281,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.59961,
    "c": 0.10318,
    "h": 104.4
  },
  "luminance": 0.21858
}

Semantic roles & 50–950 ramp

primary
#8A8331
secondary
#656BB2
accent
#5BD751
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A8331

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

Preview Lab → · Contrast checker → · Palette generator →

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