Skip to content

#a2ab55

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

RGB
162, 171, 85
HSL
66°, 34%, 50%
CMYK
5, 0, 50, 33
Luminance
0.3746

At a glance

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

Hex
#a2ab55
Hue
66°
yellow
Saturation
34%
soft
Lightness
50%
balanced
Brightness
67%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3746
WCAG relative
Temperature
Warm
31/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
8.49:1
Closest name
Dark Khaki
ΔE2000 6.1
Where it sits
Hue66° of 360°
Saturation34%
Lightness50%
Temperature
Warm ← → Cool31% 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#a2ab55
RGBrgb(162, 171, 85)
HSLhsl(66, 34%, 50%)
CMYKcmyk(5%, 0%, 50%, 33%)
LABlab(67.6 -15.9 42.8)
LCHlch(67.6 45.6 110.4)
OKLCHoklch(0.715 0.111 114.2)
Decimal10660693
Display P3color(display-p3 0.635 0.671 0.333)

Copy-ready code

/* CSS */
color: #a2ab55;
background-color: #a2ab55;
/* Tailwind (arbitrary) */
class="text-[#a2ab55] bg-[#a2ab55]"
/* SCSS */
$brand: #a2ab55;
/* SwiftUI */
Color(red: 0.635, green: 0.671, blue: 0.333)
/* Android */
Color.parseColor("#a2ab55")
/* Flutter */
Color(0xFFA2AB55)
/* Python / OpenCV (BGR) */
(85, 171, 162)

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

Accessibility — WCAG contrast

Aa
#a2ab55 on white: 2.47:1
AA ✗ fail · AA-large · AAA
Aa
#a2ab55 on black: 8.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B6A44D
deuteranopia · #B5A65A
tritanopia · #ABA397

Color scale — 50 to 950

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

#F9F9F5
#F3F4EC
#E6E8D4
#D6DAB4
#C1C78E
#ADB569
#a2ab55
#818943
#676D36
#4C502A
#30321A
Base = 600Lightest = 50 · #F9F9F5Darkest = 950 · #30321A
:root {
  --brand-50: #F9F9F5;
  --brand-100: #F3F4EC;
  --brand-200: #E6E8D4;
  --brand-300: #D6DAB4;
  --brand-400: #C1C78E;
  --brand-500: #ADB569;
  --brand-600: #a2ab55;
  --brand-700: #818943;
  --brand-800: #676D36;
  --brand-900: #4C502A;
  --brand-950: #30321A;
  --brand: #a2ab55;
  --brand-ink: #000000;
}

Colors that work with #a2ab55

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#E1E4C8
Hairlines and dividers
Muted text#919A4C
Captions on the surface
Accent#505EB0
Second voice, not a rival
Dark variant#51552A
Hover, pressed, headers
Light variant#F6F7EE
Selected rows, tints
Dark surface#232414
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 #a2ab55

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#5E55AB
Analogous left#AB8955
Analogous right#77AB55
Split-complement 1#5577AB
Split-complement 2#8955AB
Triadic 1#55A2AB
Triadic 2#AB55A2
Tetradic#55AB89

RGB percentages

Red63.5%
Green67.1%
Blue33.3%

CMYK percentages

Cyan5.3%
Magenta0.0%
Yellow50.3%
Key (black)32.9%

Color previews

#a2ab55 text on a black background

contrast 8.49:1

Card sample

#a2ab55 text on a white background

contrast 2.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(162, 171, 85, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 171, 85, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a2ab55;
background: linear-gradient(135deg, #a2ab55, #69AB55);

Monochromatic scale

Palettes built from #a2ab55

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.

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

#a2ab55, answered

What color is #a2ab55?

#a2ab55 is a balanced soft yellow, closest to Dark Khaki (ΔE2000 6.1). It sits at 66° on the hue wheel with 34% saturation and 50% lightness, which reads as warm.

What is the RGB value of #a2ab55?

rgb(162, 171, 85) — 162 red, 171 green and 85 blue out of 255, or 63.5% / 67.1% / 33.3% by channel.

Is #a2ab55 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3746 and perceived brightness is 63%, so black text on it reaches 8.49:1.

Should I use black or white text on #a2ab55?

Black. It scores 8.49:1 against #a2ab55, versus 2.47:1 for white — AAA at any size.

What is the complementary color of #a2ab55?

#5E55AB sits directly opposite on the wheel. Softer options are the split-complements #5577AB and #8955AB, which give the same contrast with far less vibration.

What colors go well with #a2ab55?

For interface work: #F9FAF5 as the surface, #E1E4C8 for borders, #919A4C for secondary text, #505EB0 as an accent and #51552A for hover and pressed states. For a palette, the analogous pair #AB8955 and #77AB55 stays calm, while #5E55AB is the loudest partner.

What is #a2ab55 in CMYK for printing?

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

Is #a2ab55 warm or cool?

Warm — it scores 31 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AB9555; nudged cooler, #83AE52.

Work with #a2ab55 in the Color Lab