Skip to content

#b2db1f

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

RGB
178, 219, 31
HSL
73°, 75%, 49%
CMYK
19, 0, 86, 14
Luminance
0.6023

Every format

HEX#b2db1f
RGBrgb(178, 219, 31)
HSLhsl(73, 75%, 49%)
CMYKcmyk(19%, 0%, 86%, 14%)
LABlab(82.0 -35.6 76.9)
LCHlch(82.0 84.7 114.9)
OKLCHoklch(0.832 0.197 122.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2db1f on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#b2db1f on black: 13.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green85.9%
Blue12.2%

CMYK percentages

Cyan18.7%
Magenta0.0%
Yellow85.8%
Key (black)14.1%

Color previews

#b2db1f text on a black background

contrast 13.05:1

Card sample

#b2db1f text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 219, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 219, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2db1f;
background: linear-gradient(135deg, #b2db1f, #35DB1F);

Monochromatic scale

Palettes built from #b2db1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2db1f in the Color Lab