Skip to content

#bfbf40

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

RGB
191, 191, 64
HSL
60°, 50%, 50%
CMYK
0, 0, 67, 25
Luminance
0.4871

Every format

HEX#bfbf40
RGBrgb(191, 191, 64)
HSLhsl(60, 50%, 50%)
CMYKcmyk(0%, 0%, 67%, 25%)
LABlab(75.3 -15.5 61.2)
LCHlch(75.3 63.2 104.2)
OKLCHoklch(0.781 0.146 109.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bfbf40 on white: 1.96:1
AA ✗ fail · AA-large · AAA
Aa
#bfbf40 on black: 10.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red74.9%
Green74.9%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow66.5%
Key (black)25.1%

Color previews

#bfbf40 text on a black background

contrast 10.74:1

Card sample

#bfbf40 text on a white background

contrast 1.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(191, 191, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(191, 191, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bfbf40;
background: linear-gradient(135deg, #bfbf40, #6ABF40);

Monochromatic scale

Palettes built from #bfbf40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bfbf40 in the Color Lab