Skip to content

#8ac02a

a balanced, vivid green · neutral · closest name: Yellow Green

RGB
138, 192, 42
HSL
82°, 64%, 46%
CMYK
28, 0, 78, 25
Luminance
0.4327

At a glance

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

Hex
#8ac02a
Hue
82°
green
Saturation
64%
vivid
Lightness
46%
balanced
Brightness
75%
HSV value
Perceived
65%
weighted brightness
Luminance
0.4327
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
9.65:1
Closest name
Yellow Green
ΔE2000 3.6
Where it sits
Hue82° of 360°
Saturation64%
Lightness46%
Temperature
Warm ← → Cool43% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#8ac02a
RGBrgb(138, 192, 42)
HSLhsl(82, 64%, 46%)
CMYKcmyk(28%, 0%, 78%, 25%)
LABlab(71.7 -38.7 64.2)
LCHlch(71.7 75.0 121.1)
OKLCHoklch(0.743 0.180 128.1)
Decimal9093162
Display P3color(display-p3 0.541 0.753 0.165)

Copy-ready code

/* CSS */
color: #8ac02a;
background-color: #8ac02a;
/* Tailwind (arbitrary) */
class="text-[#8ac02a] bg-[#8ac02a]"
/* SCSS */
$brand: #8ac02a;
/* SwiftUI */
Color(red: 0.541, green: 0.753, blue: 0.165)
/* Android */
Color.parseColor("#8ac02a")
/* Flutter */
Color(0xFF8AC02A)
/* Python / OpenCV (BGR) */
(42, 192, 138)

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

Accessibility — WCAG contrast

Aa
#8ac02a on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#8ac02a on black: 9.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CAB200
deuteranopia · #C2AF3A
tritanopia · #8FB7A4

Color scale — 50 to 950

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

#F8FBF4
#F2F7E8
#E3F1CB
#D1EBA3
#BAE175
#A3D747
#8ac02a
#78A725
#60861D
#476119
#2D3D10
Base = 600Lightest = 50 · #F8FBF4Darkest = 950 · #2D3D10
:root {
  --brand-50: #F8FBF4;
  --brand-100: #F2F7E8;
  --brand-200: #E3F1CB;
  --brand-300: #D1EBA3;
  --brand-400: #BAE175;
  --brand-500: #A3D747;
  --brand-600: #8ac02a;
  --brand-700: #78A725;
  --brand-800: #60861D;
  --brand-900: #476119;
  --brand-950: #2D3D10;
  --brand: #8ac02a;
  --brand-ink: #000000;
}

Colors that work with #8ac02a

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#F8FAF4
Tinted page background
Border#DCEDC0
Hairlines and dividers
Muted text#7E9B4B
Captions on the surface
Accent#3725C5
Second voice, not a rival
Dark variant#4B6917
Hover, pressed, headers
Light variant#F5FAEA
Selected rows, tints
Dark surface#1E2414
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 #8ac02a

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
  • 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
  • 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#602AC0
Analogous left#C0AB2A
Analogous right#3FC02A
Split-complement 1#2A3FC0
Split-complement 2#AB2AC0
Triadic 1#2A8AC0
Triadic 2#C02A8A
Tetradic#2AC0AB

RGB percentages

Red54.1%
Green75.3%
Blue16.5%

CMYK percentages

Cyan28.1%
Magenta0.0%
Yellow78.1%
Key (black)24.7%

Color previews

#8ac02a text on a black background

contrast 9.65:1

Card sample

#8ac02a text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(138, 192, 42, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(138, 192, 42, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8ac02a;
background: linear-gradient(135deg, #8ac02a, #2AC02E);

Monochromatic scale

Palettes built from #8ac02a

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.

#8ac02a in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#8ac02a, answered

What color is #8ac02a?

#8ac02a is a balanced vivid green, closest to Yellow Green (ΔE2000 3.6). It sits at 82° on the hue wheel with 64% saturation and 46% lightness, which reads as neutral.

What is the RGB value of #8ac02a?

rgb(138, 192, 42) — 138 red, 192 green and 42 blue out of 255, or 54.1% / 75.3% / 16.5% by channel.

Is #8ac02a a light or a dark color?

It is a mid-tone. Relative luminance is 0.4327 and perceived brightness is 65%, so black text on it reaches 9.65:1.

Should I use black or white text on #8ac02a?

Black. It scores 9.65:1 against #8ac02a, versus 2.18:1 for white — AAA at any size.

What is the complementary color of #8ac02a?

#602AC0 sits directly opposite on the wheel. Softer options are the split-complements #2A3FC0 and #AB2AC0, which give the same contrast with far less vibration.

What colors go well with #8ac02a?

For interface work: #F8FAF4 as the surface, #DCEDC0 for borders, #7E9B4B for secondary text, #3725C5 as an accent and #4B6917 for hover and pressed states. For a palette, the analogous pair #C0AB2A and #3FC02A stays calm, while #602AC0 is the loudest partner.

What is #8ac02a in CMYK for printing?

cmyk(28%, 0%, 78%, 25%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #8ac02a warm or cool?

Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C0BF2A; nudged cooler, #52C228.

Work with #8ac02a in the Color Lab