Skip to content

#8a8642

a dark, soft yellow · warm · closest name: Olive

RGB
138, 134, 66
HSL
57°, 35%, 40%
CMYK
0, 3, 52, 46
Luminance
0.2285

At a glance

Every number on this page in one read: what #8a8642 is made of, how bright it looks, and which way it leans.

Hex
#8a8642
Hue
57°
yellow
Saturation
35%
soft
Lightness
40%
dark
Brightness
54%
HSV value
Perceived
51%
weighted brightness
Luminance
0.2285
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
5.57:1
Closest name
Olive
ΔE2000 7.1
Where it sits
Hue57° of 360°
Saturation35%
Lightness40%
Temperature
Warm ← → Cool22% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#8a8642
RGBrgb(138, 134, 66)
HSLhsl(57, 35%, 40%)
CMYKcmyk(0%, 3%, 52%, 46%)
LABlab(54.9 -8.3 36.8)
LCHlch(54.9 37.7 102.8)
OKLCHoklch(0.608 0.090 105.7)
Decimal9078338
Display P3color(display-p3 0.541 0.525 0.259)

Copy-ready code

/* CSS */
color: #8a8642;
background-color: #8a8642;
/* Tailwind (arbitrary) */
class="text-[#8a8642] bg-[#8a8642]"
/* SCSS */
$brand: #8a8642;
/* SwiftUI */
Color(red: 0.541, green: 0.525, blue: 0.259)
/* Android */
Color.parseColor("#8a8642")
/* Flutter */
Color(0xFF8A8642)
/* Python / OpenCV (BGR) */
(66, 134, 138)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #8a8642 · 5.57:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.77:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.57:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #8a8642 as text scores 3.77:1 on white and 5.57:1 on black.

Accessibility — WCAG contrast

Aa
#8a8642 on white: 3.77:1
AA ✗ fail · AA-large · AAA
Aa
#8a8642 on black: 5.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #90823C
deuteranopia · #928545
tritanopia · #937E76

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #8a8642 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F9F9F5
#F4F3EB
#E8E7D4
#DBD9B3
#C9C58D
#B6B267
#A6A14F
#8a8642
#6E6B35
#514F29
#33311A
Base = 700Lightest = 50 · #F9F9F5Darkest = 950 · #33311A
:root {
  --brand-50: #F9F9F5;
  --brand-100: #F4F3EB;
  --brand-200: #E8E7D4;
  --brand-300: #DBD9B3;
  --brand-400: #C9C58D;
  --brand-500: #B6B267;
  --brand-600: #A6A14F;
  --brand-700: #8a8642;
  --brand-800: #6E6B35;
  --brand-900: #514F29;
  --brand-950: #33311A;
  --brand: #8a8642;
  --brand-ink: #000000;
}

Colors that work with #8a8642

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAFAF5
Tinted page background
Border#E5E3C8
Hairlines and dividers
Muted text#9B964B
Captions on the surface
Accent#3E568E
Second voice, not a rival
Dark variant#565429
Hover, pressed, headers
Light variant#F7F6EE
Selected rows, tints
Dark surface#242414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #8a8642

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#42468A
Analogous left#8A6242
Analogous right#6A8A42
Split-complement 1#426A8A
Split-complement 2#62428A
Triadic 1#428A86
Triadic 2#86428A
Tetradic#428A62

RGB percentages

Red54.1%
Green52.5%
Blue25.9%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow52.2%
Key (black)45.9%

Color previews

#8a8642 text on a black background

contrast 5.57:1

Card sample

#8a8642 text on a white background

contrast 3.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8a8642;
Background color
Panel with #8a8642 background
background-color: #8a8642;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #8a8642;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(138, 134, 66, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(138, 134, 66, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8a8642;
background: linear-gradient(135deg, #8a8642, #5E8A42);

Monochromatic scale

Palettes built from #8a8642

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#8a8642 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#8a8642, answered

What color is #8a8642?

#8a8642 is a dark soft yellow, closest to Olive (ΔE2000 7.1). It sits at 57° on the hue wheel with 35% saturation and 40% lightness, which reads as warm.

What is the RGB value of #8a8642?

rgb(138, 134, 66) — 138 red, 134 green and 66 blue out of 255, or 54.1% / 52.5% / 25.9% by channel.

Is #8a8642 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2285 and perceived brightness is 51%, so black text on it reaches 5.57:1.

Should I use black or white text on #8a8642?

Black. It scores 5.57:1 against #8a8642, versus 3.77:1 for white — AA at any size.

What is the complementary color of #8a8642?

#42468A sits directly opposite on the wheel. Softer options are the split-complements #426A8A and #62428A, which give the same contrast with far less vibration.

What colors go well with #8a8642?

For interface work: #FAFAF5 as the surface, #E5E3C8 for borders, #9B964B for secondary text, #3E568E as an accent and #565429 for hover and pressed states. For a palette, the analogous pair #8A6242 and #6A8A42 stays calm, while #42468A is the loudest partner.

What is #8a8642 in CMYK for printing?

cmyk(0%, 3%, 52%, 46%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #8a8642 warm or cool?

Warm — it scores 22 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8A6C42; nudged cooler, #748C40.

Work with #8a8642 in the Color Lab