Skip to content

#b2f308

a balanced, electric green · cool · closest name: yellow

RGB
178, 243, 8
HSL
77°, 94%, 49%
CMYK
27, 0, 97, 5
Luminance
0.7358

Every format

HEX#b2f308
RGBrgb(178, 243, 8)
HSLhsl(77, 94%, 49%)
CMYKcmyk(27%, 0%, 97%, 5%)
LABlab(88.7 -46.5 85.3)
LCHlch(88.7 97.2 118.6)
OKLCHoklch(0.887 0.227 126.8)

Copy-ready code

/* CSS */
color: #b2f308;
background-color: #b2f308;
/* Tailwind (arbitrary) */
class="text-[#b2f308] bg-[#b2f308]"
/* SCSS */
$brand: #b2f308;
/* SwiftUI */
Color(red: 0.698, green: 0.953, blue: 0.031)
/* Android */
Color.parseColor("#b2f308")

Accessibility — WCAG contrast

Aa
#b2f308 on white: 1.34:1
AA ✗ fail · AA-large · AAA
Aa
#b2f308 on black: 15.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green95.3%
Blue3.1%

CMYK percentages

Cyan26.7%
Magenta0.0%
Yellow96.7%
Key (black)4.7%

Color previews

#b2f308 text on a black background

contrast 15.72:1

Card sample

#b2f308 text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 243, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 243, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2f308;
background: linear-gradient(135deg, #b2f308, #15F308);

Monochromatic scale

Palettes built from #b2f308

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2f308 in the Color Lab