Skip to content

#a2ab06

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

RGB
162, 171, 6
HSL
63°, 93%, 35%
CMYK
5, 0, 97, 33
Luminance
0.3682

At a glance

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

Hex
#a2ab06
Hue
63°
yellow
Saturation
93%
electric
Lightness
35%
dark
Brightness
67%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3682
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
8.36:1
Closest name
Dark Khaki
ΔE2000 10.3
Where it sits
Hue63° of 360°
Saturation93%
Lightness35%
Temperature
Warm ← → Cool28% 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#a2ab06
RGBrgb(162, 171, 6)
HSLhsl(63, 93%, 35%)
CMYKcmyk(5%, 0%, 97%, 33%)
LABlab(67.1 -19.9 68.4)
LCHlch(67.1 71.2 106.2)
OKLCHoklch(0.710 0.158 113.5)
Decimal10660614
Display P3color(display-p3 0.635 0.671 0.024)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a2ab06 on white: 2.51:1
AA ✗ fail · AA-large · AAA
Aa
#a2ab06 on black: 8.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B9A200
deuteranopia · #B9A521
tritanopia · #AEA091

Color scale — 50 to 950

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

#FCFDF2
#FAFBE4
#F6F9C2
#F5FB93
#F1F95C
#ECF726
#E0EC08
#BBC507
#a2ab06
#6C7209
#434705
Base = 800Lightest = 50 · #FCFDF2Darkest = 950 · #434705
:root {
  --brand-50: #FCFDF2;
  --brand-100: #FAFBE4;
  --brand-200: #F6F9C2;
  --brand-300: #F5FB93;
  --brand-400: #F1F95C;
  --brand-500: #ECF726;
  --brand-600: #E0EC08;
  --brand-700: #BBC507;
  --brand-800: #a2ab06;
  --brand-900: #6C7209;
  --brand-950: #434705;
  --brand: #a2ab06;
  --brand-ink: #000000;
}

Colors that work with #a2ab06

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#EAEDC0
Hairlines and dividers
Muted text#969B4B
Captions on the surface
Accent#0224AE
Second voice, not a rival
Dark variant#757B04
Hover, pressed, headers
Light variant#FDFEE6
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 #a2ab06

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#0F06AB
Analogous left#AB6206
Analogous right#4FAB06
Split-complement 1#064FAB
Split-complement 2#6206AB
Triadic 1#06A2AB
Triadic 2#AB06A2
Tetradic#06AB62

RGB percentages

Red63.5%
Green67.1%
Blue2.4%

CMYK percentages

Cyan5.3%
Magenta0.0%
Yellow96.5%
Key (black)32.9%

Color previews

#a2ab06 text on a black background

contrast 8.36:1

Card sample

#a2ab06 text on a white background

contrast 2.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a2ab06

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.

#a2ab06 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#a2ab06, answered

What color is #a2ab06?

#a2ab06 is a dark electric yellow, closest to Dark Khaki (ΔE2000 10.3). It sits at 63° on the hue wheel with 93% saturation and 35% lightness, which reads as warm.

What is the RGB value of #a2ab06?

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

Is #a2ab06 a light or a dark color?

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

Should I use black or white text on #a2ab06?

Black. It scores 8.36:1 against #a2ab06, versus 2.51:1 for white — AAA at any size.

What is the complementary color of #a2ab06?

#0F06AB sits directly opposite on the wheel. Softer options are the split-complements #064FAB and #6206AB, which give the same contrast with far less vibration.

What colors go well with #a2ab06?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #969B4B for secondary text, #0224AE as an accent and #757B04 for hover and pressed states. For a palette, the analogous pair #AB6206 and #4FAB06 stays calm, while #0F06AB is the loudest partner.

What is #a2ab06 in CMYK for printing?

cmyk(5%, 0%, 97%, 33%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #a2ab06 warm or cool?

Warm — it scores 28 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AB7806; nudged cooler, #66AD04.

Work with #a2ab06 in the Color Lab