Skip to content

#cacf45

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

RGB
202, 207, 69
HSL
62°, 59%, 54%
CMYK
2, 0, 67, 19
Luminance
0.5761

Every format

HEX#cacf45
RGBrgb(202, 207, 69)
HSLhsl(62, 59%, 54%)
CMYKcmyk(2%, 0%, 67%, 19%)
LABlab(80.5 -18.6 64.9)
LCHlch(80.5 67.5 106.0)
OKLCHoklch(0.826 0.157 111.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red79.2%
Green81.2%
Blue27.1%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow66.7%
Key (black)18.8%

Color previews

#cacf45 text on a black background

contrast 12.52:1

Card sample

#cacf45 text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cacf45

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cacf45 in the Color Lab