Skip to content

#baf042

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

RGB
186, 240, 66
HSL
79°, 85%, 60%
CMYK
23, 0, 73, 6
Luminance
0.7315

Every format

HEX#baf042
RGBrgb(186, 240, 66)
HSLhsl(79, 85%, 60%)
CMYKcmyk(23%, 0%, 73%, 6%)
LABlab(88.5 -40.5 73.5)
LCHlch(88.5 84.0 118.9)
OKLCHoklch(0.887 0.201 125.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green94.1%
Blue25.9%

CMYK percentages

Cyan22.5%
Magenta0.0%
Yellow72.5%
Key (black)5.9%

Color previews

#baf042 text on a black background

contrast 15.63:1

Card sample

#baf042 text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 240, 66, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 240, 66, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baf042;
background: linear-gradient(135deg, #baf042, #46F042);

Monochromatic scale

Palettes built from #baf042

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf042 in the Color Lab