Skip to content

#cef021

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

RGB
206, 240, 33
HSL
70°, 87%, 54%
CMYK
14, 0, 86, 6
Luminance
0.7555

Every format

HEX#cef021
RGBrgb(206, 240, 33)
HSLhsl(70, 87%, 54%)
CMYKcmyk(14%, 0%, 86%, 6%)
LABlab(89.7 -34.0 83.6)
LCHlch(89.7 90.3 112.1)
OKLCHoklch(0.899 0.207 119.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cef021 on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#cef021 on black: 16.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green94.1%
Blue12.9%

CMYK percentages

Cyan14.2%
Magenta0.0%
Yellow86.3%
Key (black)5.9%

Color previews

#cef021 text on a black background

contrast 16.11:1

Card sample

#cef021 text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cef021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cef021 in the Color Lab