#8A8031#8A8031

#8A8031 is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.3% C 0.100 H 102.1°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A8031
RGBrgb(138, 128, 49)
HSLhsl(53, 48%, 37%)
HSVhsv(53, 64%, 54%)
CMYKcmyk(0%, 7.2%, 64.5%, 45.9%)
CIE-LABlab(53.02, -6.40, 42.96)
CIE-LCHlch(53.02, 43.44, 98.48°)
OKLaboklab(59.28% -0.021 0.098)
OKLCHoklch(59.28% 0.1 102.1)
XYZxyz(18.7555, 21.0641, 5.9830)
Luminance0.2106 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8031 #313B8A
analogous
#8A5431 #8A8031 #688A31
triadic
#8A8031 #318A80 #80318A
tetradic
#8A8031 #318A54 #313B8A #8A3168
square
#8A8031 #318A54 #313B8A #8A3168
split-complementary
#8A8031 #31688A #54318A
monochromatic
#302C11 #5D5621 #8A8031 #B7AA41 #CAC06B

Accessibility & contrast

On white

4.03
#8A8031 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#8A8031 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8031
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8031#FFFFFF#000000##000000
##8A80311.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7C28
Deuteranopia (green-blind)
#8E8135
Tritanopia (blue-blind)
#94776F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a8031;
/* rgb */ color: rgb(138, 128, 49);
/* oklch */ color: oklch(59.3% 0.100 102.1);
Tailwind
colors: {
  custom: {
    50: '#afa46d',
    500: '#8a8031',
    950: '#000000',
  },
}
SCSS
$custom: #8a8031;
$custom-light: #afa46d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8031",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 49
  },
  "hsl": {
    "h": 53.258,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.5928,
    "c": 0.1002,
    "h": 102.1
  },
  "luminance": 0.21063
}

Semantic roles & 50–950 ramp

primary
#8A8031
secondary
#656EB2
accent
#60D751
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A8031

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

Preview Lab → · Contrast checker → · Palette generator →

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