Skip to content

#cfe921

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

RGB
207, 233, 33
HSL
68°, 82%, 52%
CMYK
11, 0, 86, 9
Luminance
0.7165

Every format

HEX#cfe921
RGBrgb(207, 233, 33)
HSLhsl(68, 82%, 52%)
CMYKcmyk(11%, 0%, 86%, 9%)
LABlab(87.8 -30.4 82.1)
LCHlch(87.8 87.6 110.3)
OKLCHoklch(0.884 0.199 117.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfe921 on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#cfe921 on black: 15.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green91.4%
Blue12.9%

CMYK percentages

Cyan11.2%
Magenta0.0%
Yellow85.8%
Key (black)8.6%

Color previews

#cfe921 text on a black background

contrast 15.33:1

Card sample

#cfe921 text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfe921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfe921 in the Color Lab