Skip to content

#b3af39

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

RGB
179, 175, 57
HSL
58°, 52%, 46%
CMYK
0, 2, 68, 30
Luminance
0.4054

Every format

HEX#b3af39
RGBrgb(179, 175, 57)
HSLhsl(58, 52%, 46%)
CMYKcmyk(0%, 2%, 68%, 30%)
LABlab(69.8 -12.8 58.2)
LCHlch(69.8 59.6 102.4)
OKLCHoklch(0.736 0.137 107.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b3af39 on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#b3af39 on black: 9.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.2%
Green68.6%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta2.2%
Yellow68.2%
Key (black)29.8%

Color previews

#b3af39 text on a black background

contrast 9.11:1

Card sample

#b3af39 text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(179, 175, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(179, 175, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b3af39;
background: linear-gradient(135deg, #b3af39, #66B339);

Monochromatic scale

Palettes built from #b3af39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b3af39 in the Color Lab