Skip to content

#b2eb1f

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

RGB
178, 235, 31
HSL
77°, 84%, 52%
CMYK
24, 0, 87, 8
Luminance
0.6898

At a glance

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

Hex
#b2eb1f
Hue
77°
green
Saturation
84%
electric
Lightness
52%
balanced
Brightness
92%
HSV value
Perceived
80%
weighted brightness
Luminance
0.6898
WCAG relative
Temperature
Warm
39/100 cool
Color family
Green
Tone
Electric
Best ink
Black
14.80:1
Closest name
Green Yellow
ΔE2000 4.8
Where it sits
Hue77° of 360°
Saturation84%
Lightness52%
Temperature
Warm ← → Cool39% 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#b2eb1f
RGBrgb(178, 235, 31)
HSLhsl(77, 84%, 52%)
CMYKcmyk(24%, 0%, 87%, 8%)
LABlab(86.5 -42.7 80.7)
LCHlch(86.5 91.3 117.9)
OKLCHoklch(0.869 0.214 125.7)
Decimal11725599
Display P3color(display-p3 0.698 0.922 0.122)

Copy-ready code

/* CSS */
color: #b2eb1f;
background-color: #b2eb1f;
/* Tailwind (arbitrary) */
class="text-[#b2eb1f] bg-[#b2eb1f]"
/* SCSS */
$brand: #b2eb1f;
/* SwiftUI */
Color(red: 0.698, green: 0.922, blue: 0.122)
/* Android */
Color.parseColor("#b2eb1f")
/* Flutter */
Color(0xFFB2EB1F)
/* Python / OpenCV (BGR) */
(31, 235, 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 #b2eb1f · 14.80:1
Use #000000AAA at every size.
Aa
White text · 1.42:1
AA fail · AA large fail · AAA fail
Aa
Black text · 14.80:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #b2eb1f as text scores 1.42:1 on white and 14.80:1 on black.

Accessibility — WCAG contrast

Aa
#b2eb1f on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#b2eb1f on black: 14.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F8DB00
deuteranopia · #F0D83B
tritanopia · #BADFC8

Color scale — 50 to 950

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

#FAFCF2
#F4FAE6
#E9F6C5
#DCF698
#CAF165
#b2eb1f
#A7E114
#8CBB11
#70960D
#526C0E
#334409
Base = 500Lightest = 50 · #FAFCF2Darkest = 950 · #334409
:root {
  --brand-50: #FAFCF2;
  --brand-100: #F4FAE6;
  --brand-200: #E9F6C5;
  --brand-300: #DCF698;
  --brand-400: #CAF165;
  --brand-500: #b2eb1f;
  --brand-600: #A7E114;
  --brand-700: #8CBB11;
  --brand-800: #70960D;
  --brand-900: #526C0E;
  --brand-950: #334409;
  --brand: #b2eb1f;
  --brand-ink: #000000;
}

Colors that work with #b2eb1f

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#F9FAF4
Tinted page background
Border#E0EDC0
Hairlines and dividers
Muted text#849B4B
Captions on the surface
Accent#211AF0
Second voice, not a rival
Dark variant#57750A
Hover, pressed, headers
Light variant#F7FDE8
Selected rows, tints
Dark surface#202414
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 #b2eb1f

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#581FEB
Analogous left#EBBE1F
Analogous right#4CEB1F
Split-complement 1#1F4CEB
Split-complement 2#BE1FEB
Triadic 1#1FB2EB
Triadic 2#EB1FB2
Tetradic#1FEBBE

RGB percentages

Red69.8%
Green92.2%
Blue12.2%

CMYK percentages

Cyan24.3%
Magenta0.0%
Yellow86.8%
Key (black)7.8%

Color previews

#b2eb1f text on a black background

contrast 14.80:1

Card sample

#b2eb1f text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2eb1f

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.

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

#b2eb1f, answered

What color is #b2eb1f?

#b2eb1f is a balanced electric green, closest to Green Yellow (ΔE2000 4.8). It sits at 77° on the hue wheel with 84% saturation and 52% lightness, which reads as warm.

What is the RGB value of #b2eb1f?

rgb(178, 235, 31) — 178 red, 235 green and 31 blue out of 255, or 69.8% / 92.2% / 12.2% by channel.

Is #b2eb1f a light or a dark color?

It is a light color. Relative luminance is 0.6898 and perceived brightness is 80%, so black text on it reaches 14.80:1.

Should I use black or white text on #b2eb1f?

Black. It scores 14.80:1 against #b2eb1f, versus 1.42:1 for white — AAA at any size.

What is the complementary color of #b2eb1f?

#581FEB sits directly opposite on the wheel. Softer options are the split-complements #1F4CEB and #BE1FEB, which give the same contrast with far less vibration.

What colors go well with #b2eb1f?

For interface work: #F9FAF4 as the surface, #E0EDC0 for borders, #849B4B for secondary text, #211AF0 as an accent and #57750A for hover and pressed states. For a palette, the analogous pair #EBBE1F and #4CEB1F stays calm, while #581FEB is the loudest partner.

What is #b2eb1f in CMYK for printing?

cmyk(24%, 0%, 87%, 8%). 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 #b2eb1f warm or cool?

Warm — it scores 39 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EBD91F; nudged cooler, #67ED1D.

Work with #b2eb1f in the Color Lab