Skip to content

#b2ba0f

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

RGB
178, 186, 15
HSL
63°, 85%, 39%
CMYK
4, 0, 92, 27
Luminance
0.4462

Every format

HEX#b2ba0f
RGBrgb(178, 186, 15)
HSLhsl(63, 85%, 39%)
CMYKcmyk(4%, 0%, 92%, 27%)
LABlab(72.6 -20.3 72.1)
LCHlch(72.6 74.9 105.7)
OKLCHoklch(0.757 0.166 112.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2ba0f on white: 2.12:1
AA ✗ fail · AA-large · AAA
Aa
#b2ba0f on black: 9.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green72.9%
Blue5.9%

CMYK percentages

Cyan4.3%
Magenta0.0%
Yellow91.9%
Key (black)27.1%

Color previews

#b2ba0f text on a black background

contrast 9.92:1

Card sample

#b2ba0f text on a white background

contrast 2.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 186, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 186, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2ba0f;
background: linear-gradient(135deg, #b2ba0f, #40BA0F);

Monochromatic scale

Palettes built from #b2ba0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2ba0f in the Color Lab