Skip to content

#cbab0f

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

RGB
203, 171, 15
HSL
50°, 86%, 43%
CMYK
0, 16, 93, 20
Luminance
0.4186

Every format

HEX#cbab0f
RGBrgb(203, 171, 15)
HSLhsl(50, 86%, 43%)
CMYKcmyk(0%, 16%, 93%, 20%)
LABlab(70.8 -1.6 71.6)
LCHlch(70.8 71.6 91.3)
OKLCHoklch(0.748 0.151 95.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cbab0f on white: 2.24:1
AA ✗ fail · AA-large · AAA
Aa
#cbab0f on black: 9.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green67.1%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta15.8%
Yellow92.6%
Key (black)20.4%

Color previews

#cbab0f text on a black background

contrast 9.37:1

Card sample

#cbab0f text on a white background

contrast 2.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(203, 171, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 171, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cbab0f;
background: linear-gradient(135deg, #cbab0f, #6ECB0F);

Monochromatic scale

Palettes built from #cbab0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbab0f in the Color Lab