Skip to content

#bafd0d

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

RGB
186, 253, 13
HSL
77°, 98%, 52%
CMYK
27, 0, 95, 1
Luminance
0.8072

Every format

HEX#bafd0d
RGBrgb(186, 253, 13)
HSLhsl(77, 98%, 52%)
CMYKcmyk(27%, 0%, 95%, 1%)
LABlab(92.0 -47.8 87.6)
LCHlch(92.0 99.8 118.6)
OKLCHoklch(0.915 0.233 126.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bafd0d on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#bafd0d on black: 17.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green99.2%
Blue5.1%

CMYK percentages

Cyan26.5%
Magenta0.0%
Yellow94.9%
Key (black)0.8%

Color previews

#bafd0d text on a black background

contrast 17.14:1

Card sample

#bafd0d text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 253, 13, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 253, 13, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bafd0d;
background: linear-gradient(135deg, #bafd0d, #1AFD0D);

Monochromatic scale

Palettes built from #bafd0d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bafd0d in the Color Lab