Skip to content

#cac73b

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

RGB
202, 199, 59
HSL
59°, 57%, 51%
CMYK
0, 2, 71, 21
Luminance
0.5372

Every format

HEX#cac73b
RGBrgb(202, 199, 59)
HSLhsl(59, 57%, 51%)
CMYKcmyk(0%, 2%, 71%, 21%)
LABlab(78.3 -15.1 66.4)
LCHlch(78.3 68.1 102.8)
OKLCHoklch(0.808 0.155 108.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red79.2%
Green78.0%
Blue23.1%

CMYK percentages

Cyan0.0%
Magenta1.5%
Yellow70.8%
Key (black)20.8%

Color previews

#cac73b text on a black background

contrast 11.74:1

Card sample

#cac73b text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cac73b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cac73b in the Color Lab