Skip to content

#cac802

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

RGB
202, 200, 2
HSL
59°, 98%, 40%
CMYK
0, 1, 99, 21
Luminance
0.5387

Every format

HEX#cac802
RGBrgb(202, 200, 2)
HSLhsl(59, 98%, 40%)
CMYKcmyk(0%, 1%, 99%, 21%)
LABlab(78.4 -17.1 78.7)
LCHlch(78.4 80.5 102.2)
OKLCHoklch(0.808 0.175 109.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cac802 on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#cac802 on black: 11.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green78.4%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta1.0%
Yellow99.0%
Key (black)20.8%

Color previews

#cac802 text on a black background

contrast 11.77:1

Card sample

#cac802 text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(202, 200, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 200, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cac802;
background: linear-gradient(135deg, #cac802, #47CA02);

Monochromatic scale

Palettes built from #cac802

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cac802 in the Color Lab