Skip to content

#b4af2c

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

RGB
180, 175, 44
HSL
58°, 61%, 44%
CMYK
0, 3, 76, 29
Luminance
0.4055

Every format

HEX#b4af2c
RGBrgb(180, 175, 44)
HSLhsl(58, 61%, 44%)
CMYKcmyk(0%, 3%, 76%, 29%)
LABlab(69.9 -13.0 62.9)
LCHlch(69.9 64.3 101.7)
OKLCHoklch(0.736 0.144 107.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red70.6%
Green68.6%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta2.8%
Yellow75.6%
Key (black)29.4%

Color previews

#b4af2c text on a black background

contrast 9.11:1

Card sample

#b4af2c text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b4af2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b4af2c in the Color Lab