Skip to content

#a2ab09

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

RGB
162, 171, 9
HSL
63°, 90%, 35%
CMYK
5, 0, 95, 33
Luminance
0.3683

At a glance

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

Hex
#a2ab09
Hue
63°
yellow
Saturation
90%
electric
Lightness
35%
dark
Brightness
67%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3683
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
8.37:1
Closest name
Dark Khaki
ΔE2000 10.2
Where it sits
Hue63° of 360°
Saturation90%
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#a2ab09
RGBrgb(162, 171, 9)
HSLhsl(63, 90%, 35%)
CMYKcmyk(5%, 0%, 95%, 33%)
LABlab(67.2 -19.8 68.0)
LCHlch(67.2 70.9 106.2)
OKLCHoklch(0.710 0.157 113.5)
Decimal10660617
Display P3color(display-p3 0.635 0.671 0.035)

Copy-ready code

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

Accessibility — WCAG contrast

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

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #a2ab09 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
#FAFBE5
#F5F8C3
#F4F994
#EEF75F
#E9F42A
#DCE90C
#B8C20A
#a2ab09
#6A700B
#424607
Base = 800Lightest = 50 · #FCFDF2Darkest = 950 · #424607
:root {
  --brand-50: #FCFDF2;
  --brand-100: #FAFBE5;
  --brand-200: #F5F8C3;
  --brand-300: #F4F994;
  --brand-400: #EEF75F;
  --brand-500: #E9F42A;
  --brand-600: #DCE90C;
  --brand-700: #B8C20A;
  --brand-800: #a2ab09;
  --brand-900: #6A700B;
  --brand-950: #424607;
  --brand: #a2ab09;
  --brand-ink: #000000;
}

Colors that work with #a2ab09

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#0526AF
Second voice, not a rival
Dark variant#737906
Hover, pressed, headers
Light variant#FCFEE7
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 #a2ab09

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#1209AB
Analogous left#AB6309
Analogous right#51AB09
Split-complement 1#0951AB
Split-complement 2#6309AB
Triadic 1#09A2AB
Triadic 2#AB09A2
Tetradic#09AB63

RGB percentages

Red63.5%
Green67.1%
Blue3.5%

CMYK percentages

Cyan5.3%
Magenta0.0%
Yellow94.7%
Key (black)32.9%

Color previews

#a2ab09 text on a black background

contrast 8.37:1

Card sample

#a2ab09 text on a white background

contrast 2.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a2ab09

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.

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

#a2ab09, answered

What color is #a2ab09?

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

What is the RGB value of #a2ab09?

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

Is #a2ab09 a light or a dark color?

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

Should I use black or white text on #a2ab09?

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

What is the complementary color of #a2ab09?

#1209AB sits directly opposite on the wheel. Softer options are the split-complements #0951AB and #6309AB, which give the same contrast with far less vibration.

What colors go well with #a2ab09?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #969B4B for secondary text, #0526AF as an accent and #737906 for hover and pressed states. For a palette, the analogous pair #AB6309 and #51AB09 stays calm, while #1209AB is the loudest partner.

What is #a2ab09 in CMYK for printing?

cmyk(5%, 0%, 95%, 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 #a2ab09 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 #AB7909; nudged cooler, #67AD07.

Work with #a2ab09 in the Color Lab