Skip to content

#a8ba13

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

RGB
168, 186, 19
HSL
67°, 82%, 40%
CMYK
10, 0, 90, 27
Luminance
0.4349

At a glance

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

Hex
#a8ba13
Hue
67°
yellow
Saturation
82%
electric
Lightness
40%
dark
Brightness
73%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4349
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
9.70:1
Closest name
Yellow Green
ΔE2000 7.5
Where it sits
Hue67° of 360°
Saturation82%
Lightness40%
Temperature
Warm ← → Cool30% 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#a8ba13
RGBrgb(168, 186, 19)
HSLhsl(67, 82%, 40%)
CMYKcmyk(10%, 0%, 90%, 27%)
LABlab(71.9 -24.5 70.5)
LCHlch(71.9 74.7 109.1)
OKLCHoklch(0.749 0.169 116.6)
Decimal11057683
Display P3color(display-p3 0.659 0.729 0.075)

Copy-ready code

/* CSS */
color: #a8ba13;
background-color: #a8ba13;
/* Tailwind (arbitrary) */
class="text-[#a8ba13] bg-[#a8ba13]"
/* SCSS */
$brand: #a8ba13;
/* SwiftUI */
Color(red: 0.659, green: 0.729, blue: 0.075)
/* Android */
Color.parseColor("#a8ba13")
/* Flutter */
Color(0xFFA8BA13)
/* Python / OpenCV (BGR) */
(19, 186, 168)

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

Accessibility — WCAG contrast

Aa
#a8ba13 on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#a8ba13 on black: 9.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C8B000
deuteranopia · #C6B12A
tritanopia · #B3AF9E

Color scale — 50 to 950

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

#FBFCF2
#F7F9E6
#F0F6C6
#EBF599
#E1EF66
#D6EA33
#C9DE17
#a8ba13
#86940F
#616B0F
#3D430A
Base = 700Lightest = 50 · #FBFCF2Darkest = 950 · #3D430A
:root {
  --brand-50: #FBFCF2;
  --brand-100: #F7F9E6;
  --brand-200: #F0F6C6;
  --brand-300: #EBF599;
  --brand-400: #E1EF66;
  --brand-500: #D6EA33;
  --brand-600: #C9DE17;
  --brand-700: #a8ba13;
  --brand-800: #86940F;
  --brand-900: #616B0F;
  --brand-950: #3D430A;
  --brand: #a8ba13;
  --brand-ink: #000000;
}

Colors that work with #a8ba13

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#E8EDC0
Hairlines and dividers
Muted text#929B4B
Captions on the surface
Accent#0F28BE
Second voice, not a rival
Dark variant#68740C
Hover, pressed, headers
Light variant#FAFDE8
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 #a8ba13

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#2513BA
Analogous left#BA7913
Analogous right#54BA13
Split-complement 1#1354BA
Split-complement 2#7913BA
Triadic 1#13A8BA
Triadic 2#BA13A8
Tetradic#13BA79

RGB percentages

Red65.9%
Green72.9%
Blue7.5%

CMYK percentages

Cyan9.7%
Magenta0.0%
Yellow89.8%
Key (black)27.1%

Color previews

#a8ba13 text on a black background

contrast 9.70:1

Card sample

#a8ba13 text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(168, 186, 19, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(168, 186, 19, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a8ba13;
background: linear-gradient(135deg, #a8ba13, #39BA13);

Monochromatic scale

Palettes built from #a8ba13

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.

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

#a8ba13, answered

What color is #a8ba13?

#a8ba13 is a dark electric yellow, closest to Yellow Green (ΔE2000 7.5). It sits at 67° on the hue wheel with 82% saturation and 40% lightness, which reads as warm.

What is the RGB value of #a8ba13?

rgb(168, 186, 19) — 168 red, 186 green and 19 blue out of 255, or 65.9% / 72.9% / 7.5% by channel.

Is #a8ba13 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4349 and perceived brightness is 67%, so black text on it reaches 9.70:1.

Should I use black or white text on #a8ba13?

Black. It scores 9.70:1 against #a8ba13, versus 2.17:1 for white — AAA at any size.

What is the complementary color of #a8ba13?

#2513BA sits directly opposite on the wheel. Softer options are the split-complements #1354BA and #7913BA, which give the same contrast with far less vibration.

What colors go well with #a8ba13?

For interface work: #FAFAF4 as the surface, #E8EDC0 for borders, #929B4B for secondary text, #0F28BE as an accent and #68740C for hover and pressed states. For a palette, the analogous pair #BA7913 and #54BA13 stays calm, while #2513BA is the loudest partner.

What is #a8ba13 in CMYK for printing?

cmyk(10%, 0%, 90%, 27%). 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 #a8ba13 warm or cool?

Warm — it scores 30 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA8F13; nudged cooler, #6BBC11.

Work with #a8ba13 in the Color Lab