Skip to content

#cac71f

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

RGB
202, 199, 31
HSL
59°, 73%, 46%
CMYK
0, 2, 85, 21
Luminance
0.5350

Every format

HEX#cac71f
RGBrgb(202, 199, 31)
HSLhsl(59, 73%, 46%)
CMYKcmyk(0%, 2%, 85%, 21%)
LABlab(78.2 -16.1 74.4)
LCHlch(78.2 76.2 102.2)
OKLCHoklch(0.806 0.168 108.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cac71f on white: 1.79:1
AA ✗ fail · AA-large · AAA
Aa
#cac71f on black: 11.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green78.0%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta1.5%
Yellow84.7%
Key (black)20.8%

Color previews

#cac71f text on a black background

contrast 11.70:1

Card sample

#cac71f text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cac71f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cac71f in the Color Lab