Skip to content

#baf308

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

RGB
186, 243, 8
HSL
75°, 94%, 49%
CMYK
24, 0, 97, 5
Luminance
0.7456

Every format

HEX#baf308
RGBrgb(186, 243, 8)
HSLhsl(75, 94%, 49%)
CMYKcmyk(24%, 0%, 97%, 5%)
LABlab(89.2 -43.5 85.8)
LCHlch(89.2 96.2 116.9)
OKLCHoklch(0.892 0.223 125.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baf308 on white: 1.32:1
AA ✗ fail · AA-large · AAA
Aa
#baf308 on black: 15.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green95.3%
Blue3.1%

CMYK percentages

Cyan23.5%
Magenta0.0%
Yellow96.7%
Key (black)4.7%

Color previews

#baf308 text on a black background

contrast 15.91:1

Card sample

#baf308 text on a white background

contrast 1.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baf308

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf308 in the Color Lab