Skip to content

#a5af5f

a balanced, soft yellow · warm · closest name: Dark Khaki

RGB
165, 175, 95
HSL
68°, 33%, 53%
CMYK
6, 0, 46, 31
Luminance
0.3949

At a glance

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

Hex
#a5af5f
Hue
68°
yellow
Saturation
33%
soft
Lightness
53%
balanced
Brightness
69%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3949
WCAG relative
Temperature
Warm
32/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
8.90:1
Closest name
Dark Khaki
ΔE2000 5.5
Where it sits
Hue68° of 360°
Saturation33%
Lightness53%
Temperature
Warm ← → Cool32% 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#a5af5f
RGBrgb(165, 175, 95)
HSLhsl(68, 33%, 53%)
CMYKcmyk(6%, 0%, 46%, 31%)
LABlab(69.1 -15.7 39.6)
LCHlch(69.1 42.6 111.6)
OKLCHoklch(0.728 0.105 114.9)
Decimal10858335
Display P3color(display-p3 0.647 0.686 0.373)

Copy-ready code

/* CSS */
color: #a5af5f;
background-color: #a5af5f;
/* Tailwind (arbitrary) */
class="text-[#a5af5f] bg-[#a5af5f]"
/* SCSS */
$brand: #a5af5f;
/* SwiftUI */
Color(red: 0.647, green: 0.686, blue: 0.373)
/* Android */
Color.parseColor("#a5af5f")
/* Flutter */
Color(0xFFA5AF5F)
/* Python / OpenCV (BGR) */
(95, 175, 165)

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 #a5af5f · 8.90:1
Use #000000AAA at every size.
Aa
White text · 2.36:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.90:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #a5af5f as text scores 2.36:1 on white and 8.90:1 on black.

Accessibility — WCAG contrast

Aa
#a5af5f on white: 2.36:1
AA ✗ fail · AA-large · AAA
Aa
#a5af5f on black: 8.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B9A858
deuteranopia · #B8A963
tritanopia · #ADA79C

Color scale — 50 to 950

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

#F9F9F5
#F3F4EC
#E5E8D4
#D5DAB4
#C0C78F
#a5af5f
#99A352
#7F8844
#666D36
#4B502A
#2F321B
Base = 500Lightest = 50 · #F9F9F5Darkest = 950 · #2F321B
:root {
  --brand-50: #F9F9F5;
  --brand-100: #F3F4EC;
  --brand-200: #E5E8D4;
  --brand-300: #D5DAB4;
  --brand-400: #C0C78F;
  --brand-500: #a5af5f;
  --brand-600: #99A352;
  --brand-700: #7F8844;
  --brand-800: #666D36;
  --brand-900: #4B502A;
  --brand-950: #2F321B;
  --brand: #a5af5f;
  --brand-ink: #000000;
}

Colors that work with #a5af5f

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#F9FAF5
Tinted page background
Border#E0E4C9
Hairlines and dividers
Muted text#8F994D
Captions on the surface
Accent#5A65B4
Second voice, not a rival
Dark variant#50552B
Hover, pressed, headers
Light variant#F5F6EE
Selected rows, tints
Dark surface#222414
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 #a5af5f

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#695FAF
Analogous left#AF915F
Analogous right#7DAF5F
Split-complement 1#5F7DAF
Split-complement 2#915FAF
Triadic 1#5FA5AF
Triadic 2#AF5FA5
Tetradic#5FAF91

RGB percentages

Red64.7%
Green68.6%
Blue37.3%

CMYK percentages

Cyan5.7%
Magenta0.0%
Yellow45.7%
Key (black)31.4%

Color previews

#a5af5f text on a black background

contrast 8.90:1

Card sample

#a5af5f text on a white background

contrast 2.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(165, 175, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(165, 175, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a5af5f;
background: linear-gradient(135deg, #a5af5f, #70AF5F);

Monochromatic scale

Palettes built from #a5af5f

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.

#a5af5f 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.

#a5af5f, answered

What color is #a5af5f?

#a5af5f is a balanced soft yellow, closest to Dark Khaki (ΔE2000 5.5). It sits at 68° on the hue wheel with 33% saturation and 53% lightness, which reads as warm.

What is the RGB value of #a5af5f?

rgb(165, 175, 95) — 165 red, 175 green and 95 blue out of 255, or 64.7% / 68.6% / 37.3% by channel.

Is #a5af5f a light or a dark color?

It is a mid-tone. Relative luminance is 0.3949 and perceived brightness is 65%, so black text on it reaches 8.90:1.

Should I use black or white text on #a5af5f?

Black. It scores 8.90:1 against #a5af5f, versus 2.36:1 for white — AAA at any size.

What is the complementary color of #a5af5f?

#695FAF sits directly opposite on the wheel. Softer options are the split-complements #5F7DAF and #915FAF, which give the same contrast with far less vibration.

What colors go well with #a5af5f?

For interface work: #F9FAF5 as the surface, #E0E4C9 for borders, #8F994D for secondary text, #5A65B4 as an accent and #50552B for hover and pressed states. For a palette, the analogous pair #AF915F and #7DAF5F stays calm, while #695FAF is the loudest partner.

What is #a5af5f in CMYK for printing?

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

Is #a5af5f warm or cool?

Warm — it scores 32 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF9C5F; nudged cooler, #88B15C.

Work with #a5af5f in the Color Lab