Skip to content

#cacb0f

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

RGB
202, 203, 15
HSL
60°, 86%, 43%
CMYK
1, 0, 93, 20
Luminance
0.5530

Every format

HEX#cacb0f
RGBrgb(202, 203, 15)
HSLhsl(60, 86%, 43%)
CMYKcmyk(1%, 0%, 93%, 20%)
LABlab(79.2 -18.4 78.0)
LCHlch(79.2 80.1 103.3)
OKLCHoklch(0.815 0.176 110.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cacb0f on white: 1.74:1
AA ✗ fail · AA-large · AAA
Aa
#cacb0f on black: 12.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green79.6%
Blue5.9%

CMYK percentages

Cyan0.5%
Magenta0.0%
Yellow92.6%
Key (black)20.4%

Color previews

#cacb0f text on a black background

contrast 12.06:1

Card sample

#cacb0f text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cacb0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cacb0f in the Color Lab