Skip to content

#bab751

a balanced, soft yellow · cool · closest name: khaki

RGB
186, 183, 81
HSL
58°, 43%, 52%
CMYK
0, 2, 57, 27
Luminance
0.4490

Every format

HEX#bab751
RGBrgb(186, 183, 81)
HSLhsl(58, 43%, 52%)
CMYKcmyk(0%, 2%, 57%, 27%)
LABlab(72.8 -12.4 51.2)
LCHlch(72.8 52.7 103.6)
OKLCHoklch(0.761 0.124 107.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bab751 on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#bab751 on black: 9.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green71.8%
Blue31.8%

CMYK percentages

Cyan0.0%
Magenta1.6%
Yellow56.5%
Key (black)27.1%

Color previews

#bab751 text on a black background

contrast 9.98:1

Card sample

#bab751 text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 183, 81, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 183, 81, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bab751;
background: linear-gradient(135deg, #bab751, #77BA51);

Monochromatic scale

Palettes built from #bab751

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bab751 in the Color Lab