Skip to content

#bacf02

a dark, electric yellow · cool · closest name: yellow

RGB
186, 207, 2
HSL
66°, 98%, 41%
CMYK
10, 0, 99, 19
Luminance
0.5507

Every format

HEX#bacf02
RGBrgb(186, 207, 2)
HSLhsl(66, 98%, 41%)
CMYKcmyk(10%, 0%, 99%, 19%)
LABlab(79.1 -27.3 78.6)
LCHlch(79.1 83.2 109.1)
OKLCHoklch(0.810 0.186 116.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bacf02 on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#bacf02 on black: 12.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green81.2%
Blue0.8%

CMYK percentages

Cyan10.1%
Magenta0.0%
Yellow99.0%
Key (black)18.8%

Color previews

#bacf02 text on a black background

contrast 12.01:1

Card sample

#bacf02 text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bacf02

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bacf02 in the Color Lab