Skip to content

#a7f331

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

RGB
167, 243, 49
HSL
84°, 89%, 57%
CMYK
31, 0, 80, 5
Luminance
0.7254

At a glance

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

Hex
#a7f331
Hue
84°
green
Saturation
89%
electric
Lightness
57%
balanced
Brightness
95%
HSV value
Perceived
82%
weighted brightness
Luminance
0.7254
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Green
Tone
Electric
Best ink
Black
15.51:1
Closest name
Green Yellow
ΔE2000 2.5
Where it sits
Hue84° of 360°
Saturation89%
Lightness57%
Temperature
Warm ← → Cool45% 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#a7f331
RGBrgb(167, 243, 49)
HSLhsl(84, 89%, 57%)
CMYKcmyk(31%, 0%, 80%, 5%)
LABlab(88.2 -49.6 77.9)
LCHlch(88.2 92.4 122.5)
OKLCHoklch(0.882 0.222 129.7)
Decimal11006769
Display P3color(display-p3 0.655 0.953 0.192)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a7f331 on white: 1.35:1
AA ✗ fail · AA-large · AAA
Aa
#a7f331 on black: 15.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE100
deuteranopia · #F4DC47
tritanopia · #ACE8D0

Color scale — 50 to 950

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

#F9FDF2
#F2FBE5
#E4F8C4
#D2F995
#BBF660
#a7f331
#92E70D
#7AC10B
#619A09
#486F0B
#2D4607
Base = 500Lightest = 50 · #F9FDF2Darkest = 950 · #2D4607
:root {
  --brand-50: #F9FDF2;
  --brand-100: #F2FBE5;
  --brand-200: #E4F8C4;
  --brand-300: #D2F995;
  --brand-400: #BBF660;
  --brand-500: #a7f331;
  --brand-600: #92E70D;
  --brand-700: #7AC10B;
  --brand-800: #619A09;
  --brand-900: #486F0B;
  --brand-950: #2D4607;
  --brand: #a7f331;
  --brand-ink: #000000;
}

Colors that work with #a7f331

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#DBEDC0
Hairlines and dividers
Muted text#7B9B4B
Captions on the surface
Accent#4A2DF7
Second voice, not a rival
Dark variant#4C7807
Hover, pressed, headers
Light variant#F5FEE7
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 #a7f331

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#7D31F3
Analogous left#F3DE31
Analogous right#46F331
Split-complement 1#3146F3
Split-complement 2#DE31F3
Triadic 1#31A7F3
Triadic 2#F331A7
Tetradic#31F3DE

RGB percentages

Red65.5%
Green95.3%
Blue19.2%

CMYK percentages

Cyan31.3%
Magenta0.0%
Yellow79.8%
Key (black)4.7%

Color previews

#a7f331 text on a black background

contrast 15.51:1

Card sample

#a7f331 text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(167, 243, 49, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(167, 243, 49, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a7f331;
background: linear-gradient(135deg, #a7f331, #31F33D);

Monochromatic scale

Palettes built from #a7f331

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.

#a7f331 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#a7f331, answered

What color is #a7f331?

#a7f331 is a balanced electric green, closest to Green Yellow (ΔE2000 2.5). It sits at 84° on the hue wheel with 89% saturation and 57% lightness, which reads as neutral.

What is the RGB value of #a7f331?

rgb(167, 243, 49) — 167 red, 243 green and 49 blue out of 255, or 65.5% / 95.3% / 19.2% by channel.

Is #a7f331 a light or a dark color?

It is a light color. Relative luminance is 0.7254 and perceived brightness is 82%, so black text on it reaches 15.51:1.

Should I use black or white text on #a7f331?

Black. It scores 15.51:1 against #a7f331, versus 1.35:1 for white — AAA at any size.

What is the complementary color of #a7f331?

#7D31F3 sits directly opposite on the wheel. Softer options are the split-complements #3146F3 and #DE31F3, which give the same contrast with far less vibration.

What colors go well with #a7f331?

For interface work: #F8FAF4 as the surface, #DBEDC0 for borders, #7B9B4B for secondary text, #4A2DF7 as an accent and #4C7807 for hover and pressed states. For a palette, the analogous pair #F3DE31 and #46F331 stays calm, while #7D31F3 is the loudest partner.

What is #a7f331 in CMYK for printing?

cmyk(31%, 0%, 80%, 5%). 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 #a7f331 warm or cool?

Neutral — it scores 45 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EEF331; nudged cooler, #5FF52F.

Work with #a7f331 in the Color Lab