Skip to content

#bbc402

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

RGB
187, 196, 2
HSL
63°, 98%, 39%
CMYK
5, 0, 99, 23
Luminance
0.5005

Every format

HEX#bbc402
RGBrgb(187, 196, 2)
HSLhsl(63, 98%, 39%)
CMYKcmyk(5%, 0%, 99%, 23%)
LABlab(76.1 -21.5 76.5)
LCHlch(76.1 79.4 105.7)
OKLCHoklch(0.787 0.175 113.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red73.3%
Green76.9%
Blue0.8%

CMYK percentages

Cyan4.6%
Magenta0.0%
Yellow99.0%
Key (black)23.1%

Color previews

#bbc402 text on a black background

contrast 11.01:1

Card sample

#bbc402 text on a white background

contrast 1.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bbc402

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bbc402 in the Color Lab