Skip to content

#baf939

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

RGB
186, 249, 57
HSL
80°, 94%, 60%
CMYK
25, 0, 77, 2
Luminance
0.7849

At a glance

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

Hex
#baf939
Hue
80°
green
Saturation
94%
electric
Lightness
60%
balanced
Brightness
98%
HSV value
Perceived
85%
weighted brightness
Luminance
0.7849
WCAG relative
Temperature
Warm
41/100 cool
Color family
Green
Tone
Electric
Best ink
Black
16.70:1
Closest name
Green Yellow
ΔE2000 2.3
Where it sits
Hue80° of 360°
Saturation94%
Lightness60%
Temperature
Warm ← → Cool41% 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#baf939
RGBrgb(186, 249, 57)
HSLhsl(80, 94%, 60%)
CMYKcmyk(25%, 0%, 77%, 2%)
LABlab(91.0 -44.9 78.7)
LCHlch(91.0 90.6 119.7)
OKLCHoklch(0.907 0.216 126.8)
Decimal12253497
Display P3color(display-p3 0.729 0.976 0.224)

Copy-ready code

/* CSS */
color: #baf939;
background-color: #baf939;
/* Tailwind (arbitrary) */
class="text-[#baf939] bg-[#baf939]"
/* SCSS */
$brand: #baf939;
/* SwiftUI */
Color(red: 0.729, green: 0.976, blue: 0.224)
/* Android */
Color.parseColor("#baf939")
/* Flutter */
Color(0xFFBAF939)
/* Python / OpenCV (BGR) */
(57, 249, 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 #baf939 · 16.70:1
Use #000000AAA at every size.
Aa
White text · 1.26:1
AA fail · AA large fail · AAA fail
Aa
Black text · 16.70:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #baf939 as text scores 1.26:1 on white and 16.70:1 on black.

Accessibility — WCAG contrast

Aa
#baf939 on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#baf939 on black: 16.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE800
deuteranopia · #FDE44D
tritanopia · #C2EDD6

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #baf939 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
#F4FBE4
#E7FAC2
#D9FC92
#C6FA5C
#baf939
#A2EE07
#87C606
#6C9E05
#4F7208
#324705
Base = 500Lightest = 50 · #F9FDF2Darkest = 950 · #324705
:root {
  --brand-50: #F9FDF2;
  --brand-100: #F4FBE4;
  --brand-200: #E7FAC2;
  --brand-300: #D9FC92;
  --brand-400: #C6FA5C;
  --brand-500: #baf939;
  --brand-600: #A2EE07;
  --brand-700: #87C606;
  --brand-800: #6C9E05;
  --brand-900: #4F7208;
  --brand-950: #324705;
  --brand: #baf939;
  --brand-ink: #000000;
}

Colors that work with #baf939

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#DEEDC0
Hairlines and dividers
Muted text#819B4B
Captions on the surface
Accent#4535FD
Second voice, not a rival
Dark variant#547C04
Hover, pressed, headers
Light variant#F6FEE6
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 #baf939

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#7839F9
Analogous left#F9D839
Analogous right#5AF939
Split-complement 1#395AF9
Split-complement 2#D839F9
Triadic 1#39BAF9
Triadic 2#F939BA
Tetradic#39F9D8

RGB percentages

Red72.9%
Green97.6%
Blue22.4%

CMYK percentages

Cyan25.3%
Magenta0.0%
Yellow77.1%
Key (black)2.4%

Color previews

#baf939 text on a black background

contrast 16.70:1

Card sample

#baf939 text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 249, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 249, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baf939;
background: linear-gradient(135deg, #baf939, #3AF939);

Monochromatic scale

Palettes built from #baf939

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.

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

#baf939, answered

What color is #baf939?

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

What is the RGB value of #baf939?

rgb(186, 249, 57) — 186 red, 249 green and 57 blue out of 255, or 72.9% / 97.6% / 22.4% by channel.

Is #baf939 a light or a dark color?

It is a light color. Relative luminance is 0.7849 and perceived brightness is 85%, so black text on it reaches 16.70:1.

Should I use black or white text on #baf939?

Black. It scores 16.70:1 against #baf939, versus 1.26:1 for white — AAA at any size.

What is the complementary color of #baf939?

#7839F9 sits directly opposite on the wheel. Softer options are the split-complements #395AF9 and #D839F9, which give the same contrast with far less vibration.

What colors go well with #baf939?

For interface work: #F8FAF4 as the surface, #DEEDC0 for borders, #819B4B for secondary text, #4535FD as an accent and #547C04 for hover and pressed states. For a palette, the analogous pair #F9D839 and #5AF939 stays calm, while #7839F9 is the loudest partner.

What is #baf939 in CMYK for printing?

cmyk(25%, 0%, 77%, 2%). 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 #baf939 warm or cool?

Warm — it scores 41 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F9F239; nudged cooler, #73FB37.

Work with #baf939 in the Color Lab