Skip to content

#cec921

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

RGB
206, 201, 33
HSL
58°, 72%, 47%
CMYK
0, 2, 84, 19
Luminance
0.5500

Every format

HEX#cec921
RGBrgb(206, 201, 33)
HSLhsl(58, 72%, 47%)
CMYKcmyk(0%, 2%, 84%, 19%)
LABlab(79.0 -15.4 74.8)
LCHlch(79.0 76.4 101.6)
OKLCHoklch(0.814 0.169 107.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cec921 on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#cec921 on black: 12.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green78.8%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow84.0%
Key (black)19.2%

Color previews

#cec921 text on a black background

contrast 12.00:1

Card sample

#cec921 text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 201, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 201, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cec921;
background: linear-gradient(135deg, #cec921, #60CE21);

Monochromatic scale

Palettes built from #cec921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cec921 in the Color Lab