#8A8041#8A8041

#8A8041 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.5% C 0.085 H 100.4°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A8041
RGBrgb(138, 128, 65)
HSLhsl(52, 36%, 40%)
HSVhsv(52, 53%, 54%)
CMYKcmyk(0%, 7.2%, 52.9%, 45.9%)
CIE-LABlab(53.19, -5.10, 35.23)
CIE-LCHlch(53.19, 35.60, 98.24°)
OKLaboklab(59.47% -0.0153 0.0833)
OKLCHoklch(59.47% 0.085 100.4)
XYZxyz(19.1551, 21.2240, 8.0876)
Luminance0.2122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8041 #414B8A
analogous
#8A5C41 #8A8041 #708A41
triadic
#8A8041 #418A80 #80418A
tetradic
#8A8041 #418A5C #414B8A #8A4170
square
#8A8041 #418A5C #414B8A #8A4170
split-complementary
#8A8041 #41708A #5C418A
monochromatic
#37331A #60592D #8A8041 #B0A458 #C4BB82

Accessibility & contrast

On white

4.00
#8A8041 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#8A8041 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8041
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8041#FFFFFF#000000##000000
##8A80411.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7D3B
Deuteranopia (green-blind)
#8D8144
Tritanopia (blue-blind)
#937871
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a8041;
/* rgb */ color: rgb(138, 128, 65);
/* oklch */ color: oklch(59.5% 0.085 100.4);
Tailwind
colors: {
  custom: {
    50: '#aea477',
    500: '#8a8041',
    950: '#000000',
  },
}
SCSS
$custom: #8a8041;
$custom-light: #aea477;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8041",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 65
  },
  "hsl": {
    "h": 51.781,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.59474,
    "c": 0.08475,
    "h": 100.4
  },
  "luminance": 0.21223
}

Semantic roles & 50–950 ramp

primary
#8A8041
secondary
#7880AE
accent
#6BCC5C
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#100F09
muted
#7F7F7B

Preview Lab

Preview with #8A8041

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

Preview Lab → · Contrast checker → · Palette generator →

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