Skip to content

#b1b261

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

RGB
177, 178, 97
HSL
61°, 35%, 54%
CMYK
1, 0, 46, 30
Luminance
0.4205

Every format

HEX#b1b261
RGBrgb(177, 178, 97)
HSLhsl(61, 35%, 54%)
CMYKcmyk(1%, 0%, 46%, 30%)
LABlab(70.9 -12.1 41.1)
LCHlch(70.9 42.8 106.5)
OKLCHoklch(0.745 0.104 109.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b1b261 on white: 2.23:1
AA ✗ fail · AA-large · AAA
Aa
#b1b261 on black: 9.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.4%
Green69.8%
Blue38.0%

CMYK percentages

Cyan0.6%
Magenta0.0%
Yellow45.5%
Key (black)30.2%

Color previews

#b1b261 text on a black background

contrast 9.41:1

Card sample

#b1b261 text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(177, 178, 97, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(177, 178, 97, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b1b261;
background: linear-gradient(135deg, #b1b261, #7BB261);

Monochromatic scale

Palettes built from #b1b261

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b1b261 in the Color Lab