Skip to content

#baf22d

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

RGB
186, 242, 45
HSL
77°, 88%, 56%
CMYK
23, 0, 81, 5
Luminance
0.7413

At a glance

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

Hex
#baf22d
Hue
77°
green
Saturation
88%
electric
Lightness
56%
balanced
Brightness
95%
HSV value
Perceived
83%
weighted brightness
Luminance
0.7413
WCAG relative
Temperature
Warm
39/100 cool
Color family
Green
Tone
Electric
Best ink
Black
15.83:1
Closest name
Green Yellow
ΔE2000 3.8
Where it sits
Hue77° of 360°
Saturation88%
Lightness56%
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#baf22d
RGBrgb(186, 242, 45)
HSLhsl(77, 88%, 56%)
CMYKcmyk(23%, 0%, 81%, 5%)
LABlab(89.0 -42.3 80.0)
LCHlch(89.0 90.5 117.9)
OKLCHoklch(0.891 0.214 125.3)
Decimal12251693
Display P3color(display-p3 0.729 0.949 0.176)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baf22d on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#baf22d on black: 15.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE200
deuteranopia · #F8DF44
tritanopia · #C3E6CF

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #baf22d 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
#F4FAE5
#E9F8C4
#DCF895
#CBF561
#baf22d
#A9E60E
#8DC00C
#719A0A
#536F0B
#344507
Base = 500Lightest = 50 · #FAFDF2Darkest = 950 · #344507
:root {
  --brand-50: #FAFDF2;
  --brand-100: #F4FAE5;
  --brand-200: #E9F8C4;
  --brand-300: #DCF895;
  --brand-400: #CBF561;
  --brand-500: #baf22d;
  --brand-600: #A9E60E;
  --brand-700: #8DC00C;
  --brand-800: #719A0A;
  --brand-900: #536F0B;
  --brand-950: #344507;
  --brand: #baf22d;
  --brand-ink: #000000;
}

Colors that work with #baf22d

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#3029F6
Second voice, not a rival
Dark variant#587807
Hover, pressed, headers
Light variant#F7FEE7
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 #baf22d

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#652DF2
Analogous left#F2C82D
Analogous right#57F22D
Split-complement 1#2D57F2
Split-complement 2#C82DF2
Triadic 1#2DBAF2
Triadic 2#F22DBA
Tetradic#2DF2C8

RGB percentages

Red72.9%
Green94.9%
Blue17.6%

CMYK percentages

Cyan23.1%
Magenta0.0%
Yellow81.4%
Key (black)5.1%

Color previews

#baf22d text on a black background

contrast 15.83:1

Card sample

#baf22d text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 242, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 242, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baf22d;
background: linear-gradient(135deg, #baf22d, #37F22D);

Monochromatic scale

Palettes built from #baf22d

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.

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

#baf22d, answered

What color is #baf22d?

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

What is the RGB value of #baf22d?

rgb(186, 242, 45) — 186 red, 242 green and 45 blue out of 255, or 72.9% / 94.9% / 17.6% by channel.

Is #baf22d a light or a dark color?

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

Should I use black or white text on #baf22d?

Black. It scores 15.83:1 against #baf22d, versus 1.33:1 for white — AAA at any size.

What is the complementary color of #baf22d?

#652DF2 sits directly opposite on the wheel. Softer options are the split-complements #2D57F2 and #C82DF2, which give the same contrast with far less vibration.

What colors go well with #baf22d?

For interface work: #F9FAF4 as the surface, #E0EDC0 for borders, #849B4B for secondary text, #3029F6 as an accent and #587807 for hover and pressed states. For a palette, the analogous pair #F2C82D and #57F22D stays calm, while #652DF2 is the loudest partner.

What is #baf22d in CMYK for printing?

cmyk(23%, 0%, 81%, 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 #baf22d 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 #F2E22D; nudged cooler, #71F42B.

Work with #baf22d in the Color Lab