Skip to content

#b2f52f

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

RGB
178, 245, 47
HSL
80°, 91%, 57%
CMYK
27, 0, 81, 4
Luminance
0.7498

At a glance

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

Hex
#b2f52f
Hue
80°
green
Saturation
91%
electric
Lightness
57%
balanced
Brightness
96%
HSV value
Perceived
83%
weighted brightness
Luminance
0.7498
WCAG relative
Temperature
Warm
42/100 cool
Color family
Green
Tone
Electric
Best ink
Black
16.00:1
Closest name
Green Yellow
ΔE2000 2.4
Where it sits
Hue80° of 360°
Saturation91%
Lightness57%
Temperature
Warm ← → Cool42% 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#b2f52f
RGBrgb(178, 245, 47)
HSLhsl(80, 91%, 57%)
CMYKcmyk(27%, 0%, 81%, 4%)
LABlab(89.4 -46.5 79.7)
LCHlch(89.4 92.3 120.3)
OKLCHoklch(0.893 0.220 127.7)
Decimal11728175
Display P3color(display-p3 0.698 0.961 0.184)

Copy-ready code

/* CSS */
color: #b2f52f;
background-color: #b2f52f;
/* Tailwind (arbitrary) */
class="text-[#b2f52f] bg-[#b2f52f]"
/* SCSS */
$brand: #b2f52f;
/* SwiftUI */
Color(red: 0.698, green: 0.961, blue: 0.184)
/* Android */
Color.parseColor("#b2f52f")
/* Flutter */
Color(0xFFB2F52F)
/* Python / OpenCV (BGR) */
(47, 245, 178)

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

Accessibility — WCAG contrast

Aa
#b2f52f on white: 1.31:1
AA ✗ fail · AA-large · AAA
Aa
#b2f52f on black: 16.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE300
deuteranopia · #F8DF46
tritanopia · #B9EAD2

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #b2f52f 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
#F3FBE5
#E7F9C3
#D7FA94
#C4F75E
#b2f52f
#9EEA0B
#84C309
#6A9C08
#4E700A
#314606
Base = 500Lightest = 50 · #F9FDF2Darkest = 950 · #314606
:root {
  --brand-50: #F9FDF2;
  --brand-100: #F3FBE5;
  --brand-200: #E7F9C3;
  --brand-300: #D7FA94;
  --brand-400: #C4F75E;
  --brand-500: #b2f52f;
  --brand-600: #9EEA0B;
  --brand-700: #84C309;
  --brand-800: #6A9C08;
  --brand-900: #4E700A;
  --brand-950: #314606;
  --brand: #b2f52f;
  --brand-ink: #000000;
}

Colors that work with #b2f52f

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#DDEDC0
Hairlines and dividers
Muted text#809B4B
Captions on the surface
Accent#3D2BF9
Second voice, not a rival
Dark variant#527A06
Hover, pressed, headers
Light variant#F6FEE7
Selected rows, tints
Dark surface#1F2414
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 #b2f52f

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#722FF5
Analogous left#F5D52F
Analogous right#4FF52F
Split-complement 1#2F4FF5
Split-complement 2#D52FF5
Triadic 1#2FB2F5
Triadic 2#F52FB2
Tetradic#2FF5D5

RGB percentages

Red69.8%
Green96.1%
Blue18.4%

CMYK percentages

Cyan27.3%
Magenta0.0%
Yellow80.8%
Key (black)3.9%

Color previews

#b2f52f text on a black background

contrast 16.00:1

Card sample

#b2f52f text on a white background

contrast 1.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 245, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 245, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2f52f;
background: linear-gradient(135deg, #b2f52f, #2FF530);

Monochromatic scale

Palettes built from #b2f52f

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.

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

#b2f52f, answered

What color is #b2f52f?

#b2f52f is a balanced electric green, closest to Green Yellow (ΔE2000 2.4). It sits at 80° on the hue wheel with 91% saturation and 57% lightness, which reads as warm.

What is the RGB value of #b2f52f?

rgb(178, 245, 47) — 178 red, 245 green and 47 blue out of 255, or 69.8% / 96.1% / 18.4% by channel.

Is #b2f52f a light or a dark color?

It is a light color. Relative luminance is 0.7498 and perceived brightness is 83%, so black text on it reaches 16.00:1.

Should I use black or white text on #b2f52f?

Black. It scores 16.00:1 against #b2f52f, versus 1.31:1 for white — AAA at any size.

What is the complementary color of #b2f52f?

#722FF5 sits directly opposite on the wheel. Softer options are the split-complements #2F4FF5 and #D52FF5, which give the same contrast with far less vibration.

What colors go well with #b2f52f?

For interface work: #F8FAF4 as the surface, #DDEDC0 for borders, #809B4B for secondary text, #3D2BF9 as an accent and #527A06 for hover and pressed states. For a palette, the analogous pair #F5D52F and #4FF52F stays calm, while #722FF5 is the loudest partner.

What is #b2f52f in CMYK for printing?

cmyk(27%, 0%, 81%, 4%). 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 #b2f52f warm or cool?

Warm — it scores 42 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F5EF2F; nudged cooler, #69F72D.

Work with #b2f52f in the Color Lab