Skip to content

#aab708

a dark, electric yellow · warm · closest name: Yellow Green

RGB
170, 183, 8
HSL
65°, 92%, 38%
CMYK
7, 0, 96, 28
Luminance
0.4243

At a glance

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

Hex
#aab708
Hue
65°
yellow
Saturation
92%
electric
Lightness
38%
dark
Brightness
72%
HSV value
Perceived
66%
weighted brightness
Luminance
0.4243
WCAG relative
Temperature
Warm
29/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
9.49:1
Closest name
Yellow Green
ΔE2000 8.8
Where it sits
Hue65° of 360°
Saturation92%
Lightness38%
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#aab708
RGBrgb(170, 183, 8)
HSLhsl(65, 92%, 38%)
CMYKcmyk(7%, 0%, 96%, 28%)
LABlab(71.2 -22.3 71.5)
LCHlch(71.2 74.9 107.3)
OKLCHoklch(0.744 0.167 114.8)
Decimal11187976
Display P3color(display-p3 0.667 0.718 0.031)

Copy-ready code

/* CSS */
color: #aab708;
background-color: #aab708;
/* Tailwind (arbitrary) */
class="text-[#aab708] bg-[#aab708]"
/* SCSS */
$brand: #aab708;
/* SwiftUI */
Color(red: 0.667, green: 0.718, blue: 0.031)
/* Android */
Color.parseColor("#aab708")
/* Flutter */
Color(0xFFAAB708)
/* Python / OpenCV (BGR) */
(8, 183, 170)

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

Accessibility — WCAG contrast

Aa
#aab708 on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#aab708 on black: 9.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C5AD00
deuteranopia · #C4AF24
tritanopia · #B6AB9B

Color scale — 50 to 950

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

#FCFDF2
#F9FBE4
#F5F9C3
#F3FA94
#ECF85E
#E6F628
#DAEB0A
#aab708
#919C07
#69710A
#424606
Base = 700Lightest = 50 · #FCFDF2Darkest = 950 · #424606
:root {
  --brand-50: #FCFDF2;
  --brand-100: #F9FBE4;
  --brand-200: #F5F9C3;
  --brand-300: #F3FA94;
  --brand-400: #ECF85E;
  --brand-500: #E6F628;
  --brand-600: #DAEB0A;
  --brand-700: #aab708;
  --brand-800: #919C07;
  --brand-900: #69710A;
  --brand-950: #424606;
  --brand: #aab708;
  --brand-ink: #000000;
}

Colors that work with #aab708

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#0424BB
Second voice, not a rival
Dark variant#717A05
Hover, pressed, headers
Light variant#FCFEE7
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 #aab708

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#1508B7
Analogous left#B76D08
Analogous right#52B708
Split-complement 1#0852B7
Split-complement 2#6D08B7
Triadic 1#08AAB7
Triadic 2#B708AA
Tetradic#08B76D

RGB percentages

Red66.7%
Green71.8%
Blue3.1%

CMYK percentages

Cyan7.1%
Magenta0.0%
Yellow95.6%
Key (black)28.2%

Color previews

#aab708 text on a black background

contrast 9.49:1

Card sample

#aab708 text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(170, 183, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(170, 183, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #aab708;
background: linear-gradient(135deg, #aab708, #35B708);

Monochromatic scale

Palettes built from #aab708

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.

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

#aab708, answered

What color is #aab708?

#aab708 is a dark electric yellow, closest to Yellow Green (ΔE2000 8.8). It sits at 65° on the hue wheel with 92% saturation and 38% lightness, which reads as warm.

What is the RGB value of #aab708?

rgb(170, 183, 8) — 170 red, 183 green and 8 blue out of 255, or 66.7% / 71.8% / 3.1% by channel.

Is #aab708 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4243 and perceived brightness is 66%, so black text on it reaches 9.49:1.

Should I use black or white text on #aab708?

Black. It scores 9.49:1 against #aab708, versus 2.21:1 for white — AAA at any size.

What is the complementary color of #aab708?

#1508B7 sits directly opposite on the wheel. Softer options are the split-complements #0852B7 and #6D08B7, which give the same contrast with far less vibration.

What colors go well with #aab708?

For interface work: #FAFAF4 as the surface, #E9EDC0 for borders, #959B4B for secondary text, #0424BB as an accent and #717A05 for hover and pressed states. For a palette, the analogous pair #B76D08 and #52B708 stays calm, while #1508B7 is the loudest partner.

What is #aab708 in CMYK for printing?

cmyk(7%, 0%, 96%, 28%). 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 #aab708 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 #B78408; nudged cooler, #6AB906.

Work with #aab708 in the Color Lab