Skip to content

#a7a310

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

RGB
167, 163, 16
HSL
58°, 83%, 36%
CMYK
0, 2, 90, 35
Luminance
0.3445

At a glance

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

Hex
#a7a310
Hue
58°
yellow
Saturation
83%
electric
Lightness
36%
dark
Brightness
65%
HSV value
Perceived
61%
weighted brightness
Luminance
0.3445
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
7.89:1
Closest name
Dark Khaki
ΔE2000 10.1
Where it sits
Hue58° of 360°
Saturation83%
Lightness36%
Temperature
Warm ← → Cool24% 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#a7a310
RGBrgb(167, 163, 16)
HSLhsl(58, 83%, 36%)
CMYKcmyk(0%, 2%, 90%, 35%)
LABlab(65.3 -13.4 65.8)
LCHlch(65.3 67.2 101.5)
OKLCHoklch(0.696 0.147 107.9)
Decimal10986256
Display P3color(display-p3 0.655 0.639 0.063)

Copy-ready code

/* CSS */
color: #a7a310;
background-color: #a7a310;
/* Tailwind (arbitrary) */
class="text-[#a7a310] bg-[#a7a310]"
/* SCSS */
$brand: #a7a310;
/* SwiftUI */
Color(red: 0.655, green: 0.639, blue: 0.063)
/* Android */
Color.parseColor("#a7a310")
/* Flutter */
Color(0xFFA7A310)
/* Python / OpenCV (BGR) */
(16, 163, 167)

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

Accessibility — WCAG contrast

Aa
#a7a310 on white: 2.66:1
AA ✗ fail · AA-large · AAA
Aa
#a7a310 on black: 7.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B29C00
deuteranopia · #B4A122
tritanopia · #B4978B

Color scale — 50 to 950

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

#FCFCF2
#FAF9E6
#F6F5C6
#F5F399
#F0ED65
#EBE632
#DFDA15
#BAB612
#a7a310
#6C690F
#434209
Base = 800Lightest = 50 · #FCFCF2Darkest = 950 · #434209
:root {
  --brand-50: #FCFCF2;
  --brand-100: #FAF9E6;
  --brand-200: #F6F5C6;
  --brand-300: #F5F399;
  --brand-400: #F0ED65;
  --brand-500: #EBE632;
  --brand-600: #DFDA15;
  --brand-700: #BAB612;
  --brand-800: #a7a310;
  --brand-900: #6C690F;
  --brand-950: #434209;
  --brand: #a7a310;
  --brand-ink: #000000;
}

Colors that work with #a7a310

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#EDEBC0
Hairlines and dividers
Muted text#9B994B
Captions on the surface
Accent#0C38AB
Second voice, not a rival
Dark variant#74720B
Hover, pressed, headers
Light variant#FDFCE8
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 #a7a310

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#1014A7
Analogous left#A75810
Analogous right#60A710
Split-complement 1#1060A7
Split-complement 2#5810A7
Triadic 1#10A7A3
Triadic 2#A310A7
Tetradic#10A758

RGB percentages

Red65.5%
Green63.9%
Blue6.3%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow90.4%
Key (black)34.5%

Color previews

#a7a310 text on a black background

contrast 7.89:1

Card sample

#a7a310 text on a white background

contrast 2.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(167, 163, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(167, 163, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a7a310;
background: linear-gradient(135deg, #a7a310, #46A710);

Monochromatic scale

Palettes built from #a7a310

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.

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

#a7a310, answered

What color is #a7a310?

#a7a310 is a dark electric yellow, closest to Dark Khaki (ΔE2000 10.1). It sits at 58° on the hue wheel with 83% saturation and 36% lightness, which reads as warm.

What is the RGB value of #a7a310?

rgb(167, 163, 16) — 167 red, 163 green and 16 blue out of 255, or 65.5% / 63.9% / 6.3% by channel.

Is #a7a310 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3445 and perceived brightness is 61%, so black text on it reaches 7.89:1.

Should I use black or white text on #a7a310?

Black. It scores 7.89:1 against #a7a310, versus 2.66:1 for white — AAA at any size.

What is the complementary color of #a7a310?

#1014A7 sits directly opposite on the wheel. Softer options are the split-complements #1060A7 and #5810A7, which give the same contrast with far less vibration.

What colors go well with #a7a310?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B994B for secondary text, #0C38AB as an accent and #74720B for hover and pressed states. For a palette, the analogous pair #A75810 and #60A710 stays calm, while #1014A7 is the loudest partner.

What is #a7a310 in CMYK for printing?

cmyk(0%, 2%, 90%, 35%). 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 #a7a310 warm or cool?

Warm — it scores 24 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A77110; nudged cooler, #74A90E.

Work with #a7a310 in the Color Lab