Skip to content

#cacf2e

a balanced, vivid yellow · cool · closest name: gold

RGB
202, 207, 46
HSL
62°, 64%, 50%
CMYK
2, 0, 78, 19
Luminance
0.5738

Every format

HEX#cacf2e
RGBrgb(202, 207, 46)
HSLhsl(62, 64%, 50%)
CMYKcmyk(2%, 0%, 78%, 19%)
LABlab(80.4 -19.6 72.5)
LCHlch(80.4 75.2 105.1)
OKLCHoklch(0.824 0.170 111.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cacf2e on white: 1.68:1
AA ✗ fail · AA-large · AAA
Aa
#cacf2e on black: 12.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green81.2%
Blue18.0%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow77.8%
Key (black)18.8%

Color previews

#cacf2e text on a black background

contrast 12.48:1

Card sample

#cacf2e text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cacf2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cacf2e in the Color Lab