Skip to content

#cbba0f

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

RGB
203, 186, 15
HSL
55°, 86%, 43%
CMYK
0, 8, 93, 20
Luminance
0.4785

Every format

HEX#cbba0f
RGBrgb(203, 186, 15)
HSLhsl(55, 86%, 43%)
CMYKcmyk(0%, 8%, 93%, 20%)
LABlab(74.7 -9.4 74.6)
LCHlch(74.7 75.2 97.2)
OKLCHoklch(0.779 0.161 102.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cbba0f on white: 1.99:1
AA ✗ fail · AA-large · AAA
Aa
#cbba0f on black: 10.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green72.9%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta8.4%
Yellow92.6%
Key (black)20.4%

Color previews

#cbba0f text on a black background

contrast 10.57:1

Card sample

#cbba0f text on a white background

contrast 1.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbba0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbba0f in the Color Lab