Skip to content

#baf52f

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

RGB
186, 245, 47
HSL
78°, 91%, 57%
CMYK
24, 0, 81, 4
Luminance
0.7595

At a glance

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

Hex
#baf52f
Hue
78°
green
Saturation
91%
electric
Lightness
57%
balanced
Brightness
96%
HSV value
Perceived
84%
weighted brightness
Luminance
0.7595
WCAG relative
Temperature
Warm
40/100 cool
Color family
Green
Tone
Electric
Best ink
Black
16.19:1
Closest name
Green Yellow
ΔE2000 3.2
Where it sits
Hue78° of 360°
Saturation91%
Lightness57%
Temperature
Warm ← → Cool40% 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#baf52f
RGBrgb(186, 245, 47)
HSLhsl(78, 91%, 57%)
CMYKcmyk(24%, 0%, 81%, 4%)
LABlab(89.8 -43.6 80.3)
LCHlch(89.8 91.3 118.5)
OKLCHoklch(0.898 0.216 125.9)
Decimal12252463
Display P3color(display-p3 0.729 0.961 0.184)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#baf52f on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#baf52f on black: 16.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE400
deuteranopia · #FAE146
tritanopia · #C2E9D2

Color scale — 50 to 950

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

#FAFDF2
#F4FBE5
#E9F9C3
#DBFA94
#CAF75E
#baf52f
#A7EA0B
#8BC309
#6F9C08
#52700A
#334606
Base = 500Lightest = 50 · #FAFDF2Darkest = 950 · #334606
:root {
  --brand-50: #FAFDF2;
  --brand-100: #F4FBE5;
  --brand-200: #E9F9C3;
  --brand-300: #DBFA94;
  --brand-400: #CAF75E;
  --brand-500: #baf52f;
  --brand-600: #A7EA0B;
  --brand-700: #8BC309;
  --brand-800: #6F9C08;
  --brand-900: #52700A;
  --brand-950: #334606;
  --brand: #baf52f;
  --brand-ink: #000000;
}

Colors that work with #baf52f

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#DFEDC0
Hairlines and dividers
Muted text#839B4B
Captions on the surface
Accent#352BF9
Second voice, not a rival
Dark variant#577A06
Hover, pressed, headers
Light variant#F7FEE7
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 #baf52f

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#6A2FF5
Analogous left#F5CD2F
Analogous right#57F52F
Split-complement 1#2F57F5
Split-complement 2#CD2FF5
Triadic 1#2FBAF5
Triadic 2#F52FBA
Tetradic#2FF5CD

RGB percentages

Red72.9%
Green96.1%
Blue18.4%

CMYK percentages

Cyan24.1%
Magenta0.0%
Yellow80.8%
Key (black)3.9%

Color previews

#baf52f text on a black background

contrast 16.19:1

Card sample

#baf52f text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baf52f

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.

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

#baf52f, answered

What color is #baf52f?

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

What is the RGB value of #baf52f?

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

Is #baf52f a light or a dark color?

It is a light color. Relative luminance is 0.7595 and perceived brightness is 84%, so black text on it reaches 16.19:1.

Should I use black or white text on #baf52f?

Black. It scores 16.19:1 against #baf52f, versus 1.30:1 for white — AAA at any size.

What is the complementary color of #baf52f?

#6A2FF5 sits directly opposite on the wheel. Softer options are the split-complements #2F57F5 and #CD2FF5, which give the same contrast with far less vibration.

What colors go well with #baf52f?

For interface work: #F9FAF4 as the surface, #DFEDC0 for borders, #839B4B for secondary text, #352BF9 as an accent and #577A06 for hover and pressed states. For a palette, the analogous pair #F5CD2F and #57F52F stays calm, while #6A2FF5 is the loudest partner.

What is #baf52f in CMYK for printing?

cmyk(24%, 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 #baf52f warm or cool?

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

Work with #baf52f in the Color Lab