Skip to content

#b2cb2c

a balanced, vivid yellow · cool · closest name: olivedrab

RGB
178, 203, 44
HSL
69°, 64%, 48%
CMYK
12, 0, 78, 20
Luminance
0.5236

Every format

HEX#b2cb2c
RGBrgb(178, 203, 44)
HSLhsl(69, 64%, 48%)
CMYKcmyk(12%, 0%, 78%, 20%)
LABlab(77.5 -27.8 69.9)
LCHlch(77.5 75.2 111.7)
OKLCHoklch(0.796 0.174 118.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red69.8%
Green79.6%
Blue17.3%

CMYK percentages

Cyan12.3%
Magenta0.0%
Yellow78.3%
Key (black)20.4%

Color previews

#b2cb2c text on a black background

contrast 11.47:1

Card sample

#b2cb2c text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 203, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 203, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2cb2c;
background: linear-gradient(135deg, #b2cb2c, #48CB2C);

Monochromatic scale

Palettes built from #b2cb2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2cb2c in the Color Lab