Skip to content

#b2cf1b

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

RGB
178, 207, 27
HSL
70°, 77%, 46%
CMYK
14, 0, 87, 19
Luminance
0.5417

Every format

HEX#b2cf1b
RGBrgb(178, 207, 27)
HSLhsl(70, 77%, 46%)
CMYKcmyk(14%, 0%, 87%, 19%)
LABlab(78.6 -30.2 74.8)
LCHlch(78.6 80.7 112.0)
OKLCHoklch(0.805 0.185 119.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2cf1b on white: 1.77:1
AA ✗ fail · AA-large · AAA
Aa
#b2cf1b on black: 11.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green81.2%
Blue10.6%

CMYK percentages

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

Color previews

#b2cf1b text on a black background

contrast 11.83:1

Card sample

#b2cf1b text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2cf1b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2cf1b in the Color Lab