Skip to content

#cacf0c

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

RGB
202, 207, 12
HSL
62°, 89%, 43%
CMYK
2, 0, 94, 19
Luminance
0.5721

Every format

HEX#cacf0c
RGBrgb(202, 207, 12)
HSLhsl(62, 89%, 43%)
CMYKcmyk(2%, 0%, 94%, 19%)
LABlab(80.3 -20.4 79.1)
LCHlch(80.3 81.7 104.5)
OKLCHoklch(0.823 0.180 111.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cacf0c on white: 1.69:1
AA ✗ fail · AA-large · AAA
Aa
#cacf0c on black: 12.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green81.2%
Blue4.7%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow94.2%
Key (black)18.8%

Color previews

#cacf0c text on a black background

contrast 12.44:1

Card sample

#cacf0c text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(202, 207, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 207, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cacf0c;
background: linear-gradient(135deg, #cacf0c, #48CF0C);

Monochromatic scale

Palettes built from #cacf0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cacf0c in the Color Lab