#8A8541#8A8541

#8A8541 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.6% C 0.090 H 105.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A8541
RGBrgb(138, 133, 65)
HSLhsl(56, 36%, 40%)
HSVhsv(56, 53%, 54%)
CMYKcmyk(0%, 3.6%, 52.9%, 45.9%)
CIE-LABlab(54.62, -7.87, 36.92)
CIE-LCHlch(54.62, 37.75, 102.03°)
OKLaboklab(60.6% -0.0233 0.087)
OKLCHoklch(60.6% 0.09 105)
XYZxyz(19.8234, 22.5606, 8.3104)
Luminance0.2256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8541 #41468A
analogous
#8A6041 #8A8541 #6B8A41
triadic
#8A8541 #418A85 #85418A
tetradic
#8A8541 #418A60 #41468A #8A416B
square
#8A8541 #418A60 #41468A #8A416B
split-complementary
#8A8541 #416B8A #60418A
monochromatic
#37351A #605D2D #8A8541 #B0AA58 #C4BF82

Accessibility & contrast

On white

3.81
#8A8541 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#8A8541 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8541
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8541#FFFFFF#000000##000000
##8A85411.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F813B
Deuteranopia (green-blind)
#918444
Tritanopia (blue-blind)
#937D75
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8541;
/* rgb */ color: rgb(138, 133, 65);
/* oklch */ color: oklch(60.6% 0.090 105.0);
Tailwind
colors: {
  custom: {
    50: '#aea877',
    500: '#8a8541',
    950: '#000000',
  },
}
SCSS
$custom: #8a8541;
$custom-light: #aea877;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8541",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 65
  },
  "hsl": {
    "h": 55.89,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.60604,
    "c": 0.09009,
    "h": 105
  },
  "luminance": 0.2256
}

Semantic roles & 50–950 ramp

primary
#8A8541
secondary
#787CAE
accent
#64CC5C
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#100F09
muted
#7F7F7B

Preview Lab

Preview with #8A8541

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

Preview Lab → · Contrast checker → · Palette generator →

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