Skip to content

#ba9607

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

RGB
186, 150, 7
HSL
48°, 93%, 38%
CMYK
0, 19, 96, 27
Luminance
0.3227

Every format

HEX#ba9607
RGBrgb(186, 150, 7)
HSLhsl(48, 93%, 38%)
CMYKcmyk(0%, 19%, 96%, 27%)
LABlab(63.6 1.9 66.6)
LCHlch(63.6 66.6 88.3)
OKLCHoklch(0.687 0.139 91.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9607 on white: 2.82:1
AA ✗ fail · AA-large · AAA
Aa
#ba9607 on black: 7.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green58.8%
Blue2.7%

CMYK percentages

Cyan0.0%
Magenta19.4%
Yellow96.2%
Key (black)27.1%

Color previews

#ba9607 text on a black background

contrast 7.45:1

Card sample

#ba9607 text on a white background

contrast 2.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 150, 7, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 150, 7, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba9607;
background: linear-gradient(135deg, #ba9607, #67BA07);

Monochromatic scale

Palettes built from #ba9607

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba9607 in the Color Lab