Skip to content

#bbc902

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

RGB
187, 201, 2
HSL
64°, 98%, 40%
CMYK
7, 0, 99, 21
Luminance
0.5234

Every format

HEX#bbc902
RGBrgb(187, 201, 2)
HSLhsl(64, 98%, 40%)
CMYKcmyk(7%, 0%, 99%, 21%)
LABlab(77.5 -24.0 77.5)
LCHlch(77.5 81.1 107.2)
OKLCHoklch(0.798 0.180 114.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bbc902 on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#bbc902 on black: 11.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red73.3%
Green78.8%
Blue0.8%

CMYK percentages

Cyan7.0%
Magenta0.0%
Yellow99.0%
Key (black)21.2%

Color previews

#bbc902 text on a black background

contrast 11.47:1

Card sample

#bbc902 text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(187, 201, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(187, 201, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bbc902;
background: linear-gradient(135deg, #bbc902, #36C902);

Monochromatic scale

Palettes built from #bbc902

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bbc902 in the Color Lab