Skip to content

#bba80c

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

RGB
187, 168, 12
HSL
54°, 88%, 39%
CMYK
0, 10, 94, 27
Luminance
0.3860

Every format

HEX#bba80c
RGBrgb(187, 168, 12)
HSLhsl(54, 88%, 39%)
CMYKcmyk(0%, 10%, 94%, 27%)
LABlab(68.5 -7.2 69.6)
LCHlch(68.5 70.0 95.9)
OKLCHoklch(0.726 0.149 101.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bba80c on white: 2.41:1
AA ✗ fail · AA-large · AAA
Aa
#bba80c on black: 8.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red73.3%
Green65.9%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta10.2%
Yellow93.6%
Key (black)26.7%

Color previews

#bba80c text on a black background

contrast 8.72:1

Card sample

#bba80c text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(187, 168, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(187, 168, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bba80c;
background: linear-gradient(135deg, #bba80c, #59BB0C);

Monochromatic scale

Palettes built from #bba80c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bba80c in the Color Lab