Skip to content

#b4cd2f

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

RGB
180, 205, 47
HSL
70°, 63%, 49%
CMYK
12, 0, 77, 20
Luminance
0.5357

Every format

HEX#b4cd2f
RGBrgb(180, 205, 47)
HSLhsl(70, 63%, 49%)
CMYKcmyk(12%, 0%, 77%, 20%)
LABlab(78.2 -27.8 69.7)
LCHlch(78.2 75.0 111.7)
OKLCHoklch(0.803 0.174 118.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b4cd2f on white: 1.79:1
AA ✗ fail · AA-large · AAA
Aa
#b4cd2f on black: 11.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green80.4%
Blue18.4%

CMYK percentages

Cyan12.2%
Magenta0.0%
Yellow77.1%
Key (black)19.6%

Color previews

#b4cd2f text on a black background

contrast 11.71:1

Card sample

#b4cd2f text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(180, 205, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 205, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b4cd2f;
background: linear-gradient(135deg, #b4cd2f, #4BCD2F);

Monochromatic scale

Palettes built from #b4cd2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b4cd2f in the Color Lab