Skip to content

#ba9502

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

RGB
186, 149, 2
HSL
48°, 98%, 37%
CMYK
0, 20, 99, 27
Luminance
0.3194

Every format

HEX#ba9502
RGBrgb(186, 149, 2)
HSLhsl(48, 98%, 37%)
CMYKcmyk(0%, 20%, 99%, 27%)
LABlab(63.3 2.4 67.1)
LCHlch(63.3 67.2 87.9)
OKLCHoklch(0.684 0.140 90.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9502 on white: 2.84:1
AA ✗ fail · AA-large · AAA
Aa
#ba9502 on black: 7.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green58.4%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta19.9%
Yellow98.9%
Key (black)27.1%

Color previews

#ba9502 text on a black background

contrast 7.39:1

Card sample

#ba9502 text on a white background

contrast 2.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 149, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 149, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba9502;
background: linear-gradient(135deg, #ba9502, #65BA02);

Monochromatic scale

Palettes built from #ba9502

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba9502 in the Color Lab