Skip to content

#cef040

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

RGB
206, 240, 64
HSL
72°, 85%, 60%
CMYK
14, 0, 73, 6
Luminance
0.7581

Every format

HEX#cef040
RGBrgb(206, 240, 64)
HSLhsl(72, 85%, 60%)
CMYKcmyk(14%, 0%, 73%, 6%)
LABlab(89.8 -32.9 75.8)
LCHlch(89.8 82.7 113.5)
OKLCHoklch(0.901 0.194 120.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.8%
Green94.1%
Blue25.1%

CMYK percentages

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

Color previews

#cef040 text on a black background

contrast 16.16:1

Card sample

#cef040 text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cef040

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cef040 in the Color Lab