Skip to content

#a2ac26

a dark, vivid yellow · warm · closest name: Dark Khaki

RGB
162, 172, 38
HSL
65°, 64%, 41%
CMYK
6, 0, 78, 33
Luminance
0.3733

At a glance

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

Hex
#a2ac26
Hue
65°
yellow
Saturation
64%
vivid
Lightness
41%
dark
Brightness
67%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3733
WCAG relative
Temperature
Warm
29/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
8.47:1
Closest name
Dark Khaki
ΔE2000 9.1
Where it sits
Hue65° of 360°
Saturation64%
Lightness41%
Temperature
Warm ← → Cool29% 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#a2ac26
RGBrgb(162, 172, 38)
HSLhsl(65, 64%, 41%)
CMYKcmyk(6%, 0%, 78%, 33%)
LABlab(67.5 -19.6 62.2)
LCHlch(67.5 65.2 107.5)
OKLCHoklch(0.713 0.149 114.0)
Decimal10660902
Display P3color(display-p3 0.635 0.675 0.149)

Copy-ready code

/* CSS */
color: #a2ac26;
background-color: #a2ac26;
/* Tailwind (arbitrary) */
class="text-[#a2ac26] bg-[#a2ac26]"
/* SCSS */
$brand: #a2ac26;
/* SwiftUI */
Color(red: 0.635, green: 0.675, blue: 0.149)
/* Android */
Color.parseColor("#a2ac26")
/* Flutter */
Color(0xFFA2AC26)
/* Python / OpenCV (BGR) */
(38, 172, 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 #a2ac26 · 8.47:1
Use #000000AAA at every size.
Aa
White text · 2.48:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.47:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #a2ac26 as text scores 2.48:1 on white and 8.47:1 on black.

Accessibility — WCAG contrast

Aa
#a2ac26 on white: 2.48:1
AA ✗ fail · AA-large · AAA
Aa
#a2ac26 on black: 8.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B9A300
deuteranopia · #B9A632
tritanopia · #ADA193

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #a2ac26 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.

#FBFBF4
#F6F7E8
#EEF0CB
#E5EBA3
#D8E175
#CCD647
#BDC82C
#a2ac26
#7E861E
#5C6119
#393D10
Base = 700Lightest = 50 · #FBFBF4Darkest = 950 · #393D10
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F6F7E8;
  --brand-200: #EEF0CB;
  --brand-300: #E5EBA3;
  --brand-400: #D8E175;
  --brand-500: #CCD647;
  --brand-600: #BDC82C;
  --brand-700: #a2ac26;
  --brand-800: #7E861E;
  --brand-900: #5C6119;
  --brand-950: #393D10;
  --brand: #a2ac26;
  --brand-ink: #000000;
}

Colors that work with #a2ac26

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#FAFAF4
Tinted page background
Border#E9EDC0
Hairlines and dividers
Muted text#959B4B
Captions on the surface
Accent#223BB0
Second voice, not a rival
Dark variant#626817
Hover, pressed, headers
Light variant#F9FAEA
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 #a2ac26

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

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • 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#3026AC
Analogous left#AC7326
Analogous right#5FAC26
Split-complement 1#265FAC
Split-complement 2#7326AC
Triadic 1#26A2AC
Triadic 2#AC26A2
Tetradic#26AC73

RGB percentages

Red63.5%
Green67.5%
Blue14.9%

CMYK percentages

Cyan5.8%
Magenta0.0%
Yellow77.9%
Key (black)32.5%

Color previews

#a2ac26 text on a black background

contrast 8.47:1

Card sample

#a2ac26 text on a white background

contrast 2.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(162, 172, 38, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 172, 38, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a2ac26;
background: linear-gradient(135deg, #a2ac26, #49AC26);

Monochromatic scale

Palettes built from #a2ac26

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.

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

#a2ac26, answered

What color is #a2ac26?

#a2ac26 is a dark vivid yellow, closest to Dark Khaki (ΔE2000 9.1). It sits at 65° on the hue wheel with 64% saturation and 41% lightness, which reads as warm.

What is the RGB value of #a2ac26?

rgb(162, 172, 38) — 162 red, 172 green and 38 blue out of 255, or 63.5% / 67.5% / 14.9% by channel.

Is #a2ac26 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3733 and perceived brightness is 62%, so black text on it reaches 8.47:1.

Should I use black or white text on #a2ac26?

Black. It scores 8.47:1 against #a2ac26, versus 2.48:1 for white — AAA at any size.

What is the complementary color of #a2ac26?

#3026AC sits directly opposite on the wheel. Softer options are the split-complements #265FAC and #7326AC, which give the same contrast with far less vibration.

What colors go well with #a2ac26?

For interface work: #FAFAF4 as the surface, #E9EDC0 for borders, #959B4B for secondary text, #223BB0 as an accent and #626817 for hover and pressed states. For a palette, the analogous pair #AC7326 and #5FAC26 stays calm, while #3026AC is the loudest partner.

What is #a2ac26 in CMYK for printing?

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

Is #a2ac26 warm or cool?

Warm — it scores 29 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AC8526; nudged cooler, #71AE24.

Work with #a2ac26 in the Color Lab