Skip to content

#cfd921

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

RGB
207, 217, 33
HSL
63°, 74%, 49%
CMYK
5, 0, 85, 15
Luminance
0.6300

Every format

HEX#cfd921
RGBrgb(207, 217, 33)
HSLhsl(63, 74%, 49%)
CMYKcmyk(5%, 0%, 85%, 15%)
LABlab(83.4 -22.8 78.5)
LCHlch(83.4 81.8 106.2)
OKLCHoklch(0.850 0.183 113.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfd921 on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#cfd921 on black: 13.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green85.1%
Blue12.9%

CMYK percentages

Cyan4.6%
Magenta0.0%
Yellow84.8%
Key (black)14.9%

Color previews

#cfd921 text on a black background

contrast 13.60:1

Card sample

#cfd921 text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfd921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfd921 in the Color Lab