Skip to content

#b4af2f

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

RGB
180, 175, 47
HSL
58°, 59%, 45%
CMYK
0, 3, 74, 29
Luminance
0.4057

Every format

HEX#b4af2f
RGBrgb(180, 175, 47)
HSLhsl(58, 59%, 45%)
CMYKcmyk(0%, 3%, 74%, 29%)
LABlab(69.9 -12.9 61.9)
LCHlch(69.9 63.3 101.8)
OKLCHoklch(0.736 0.143 107.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red70.6%
Green68.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta2.8%
Yellow73.9%
Key (black)29.4%

Color previews

#b4af2f text on a black background

contrast 9.11:1

Card sample

#b4af2f text on a white background

contrast 2.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b4af2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b4af2f in the Color Lab