Skip to content

#baaf21

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

RGB
186, 175, 33
HSL
56°, 70%, 43%
CMYK
0, 6, 82, 27
Luminance
0.4121

Every format

HEX#baaf21
RGBrgb(186, 175, 33)
HSLhsl(56, 70%, 43%)
CMYKcmyk(0%, 6%, 82%, 27%)
LABlab(70.3 -10.8 66.8)
LCHlch(70.3 67.7 99.2)
OKLCHoklch(0.741 0.149 104.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baaf21 on white: 2.27:1
AA ✗ fail · AA-large · AAA
Aa
#baaf21 on black: 9.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green68.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta5.9%
Yellow82.3%
Key (black)27.1%

Color previews

#baaf21 text on a black background

contrast 9.24:1

Card sample

#baaf21 text on a white background

contrast 2.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baaf21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baaf21 in the Color Lab