Skip to content

#b2cf02

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

RGB
178, 207, 2
HSL
69°, 98%, 41%
CMYK
14, 0, 99, 19
Luminance
0.5410

Every format

HEX#b2cf02
RGBrgb(178, 207, 2)
HSLhsl(69, 98%, 41%)
CMYKcmyk(14%, 0%, 99%, 19%)
LABlab(78.5 -30.6 78.0)
LCHlch(78.5 83.8 111.4)
OKLCHoklch(0.804 0.190 119.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2cf02 on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#b2cf02 on black: 11.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green81.2%
Blue0.8%

CMYK percentages

Cyan14.0%
Magenta0.0%
Yellow99.0%
Key (black)18.8%

Color previews

#b2cf02 text on a black background

contrast 11.82:1

Card sample

#b2cf02 text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2cf02

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2cf02 in the Color Lab