Skip to content

#cad921

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

RGB
202, 217, 33
HSL
65°, 74%, 49%
CMYK
7, 0, 85, 15
Luminance
0.6229

Every format

HEX#cad921
RGBrgb(202, 217, 33)
HSLhsl(65, 74%, 49%)
CMYKcmyk(7%, 0%, 85%, 15%)
LABlab(83.1 -24.9 78.1)
LCHlch(83.1 81.9 107.7)
OKLCHoklch(0.846 0.185 114.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cad921 on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#cad921 on black: 13.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green85.1%
Blue12.9%

CMYK percentages

Cyan6.9%
Magenta0.0%
Yellow84.8%
Key (black)14.9%

Color previews

#cad921 text on a black background

contrast 13.46:1

Card sample

#cad921 text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(202, 217, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 217, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cad921;
background: linear-gradient(135deg, #cad921, #4FD921);

Monochromatic scale

Palettes built from #cad921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cad921 in the Color Lab