Skip to content

#bac40c

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

RGB
186, 196, 12
HSL
63°, 89%, 41%
CMYK
5, 0, 94, 23
Luminance
0.4995

Every format

HEX#bac40c
RGBrgb(186, 196, 12)
HSLhsl(63, 89%, 41%)
CMYKcmyk(5%, 0%, 94%, 23%)
LABlab(76.0 -21.8 75.3)
LCHlch(76.0 78.4 106.2)
OKLCHoklch(0.786 0.174 113.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bac40c on white: 1.91:1
AA ✗ fail · AA-large · AAA
Aa
#bac40c on black: 10.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green76.9%
Blue4.7%

CMYK percentages

Cyan5.1%
Magenta0.0%
Yellow93.9%
Key (black)23.1%

Color previews

#bac40c text on a black background

contrast 10.99:1

Card sample

#bac40c text on a white background

contrast 1.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bac40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bac40c in the Color Lab