Skip to content

#b0af2d

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

RGB
176, 175, 45
HSL
60°, 59%, 43%
CMYK
0, 1, 74, 31
Luminance
0.4008

Every format

HEX#b0af2d
RGBrgb(176, 175, 45)
HSLhsl(60, 59%, 43%)
CMYKcmyk(0%, 1%, 74%, 31%)
LABlab(69.5 -14.7 62.2)
LCHlch(69.5 63.9 103.3)
OKLCHoklch(0.732 0.144 109.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b0af2d on white: 2.33:1
AA ✗ fail · AA-large · AAA
Aa
#b0af2d on black: 9.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.0%
Green68.6%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta0.6%
Yellow74.4%
Key (black)31.0%

Color previews

#b0af2d text on a black background

contrast 9.02:1

Card sample

#b0af2d text on a white background

contrast 2.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b0af2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b0af2d in the Color Lab