Skip to content

#a7b261

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

RGB
167, 178, 97
HSL
68°, 35%, 54%
CMYK
6, 0, 46, 30
Luminance
0.4092

Every format

HEX#a7b261
RGBrgb(167, 178, 97)
HSLhsl(68, 35%, 54%)
CMYKcmyk(6%, 0%, 46%, 30%)
LABlab(70.1 -16.2 39.9)
LCHlch(70.1 43.1 112.1)
OKLCHoklch(0.737 0.106 115.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a7b261 on white: 2.29:1
AA ✗ fail · AA-large · AAA
Aa
#a7b261 on black: 9.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red65.5%
Green69.8%
Blue38.0%

CMYK percentages

Cyan6.2%
Magenta0.0%
Yellow45.5%
Key (black)30.2%

Color previews

#a7b261 text on a black background

contrast 9.18:1

Card sample

#a7b261 text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a7b261

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a7b261 in the Color Lab