Skip to content

#cefc2f

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

RGB
206, 252, 47
HSL
74°, 97%, 59%
CMYK
18, 0, 81, 1
Luminance
0.8295

Every format

HEX#cefc2f
RGBrgb(206, 252, 47)
HSLhsl(74, 97%, 59%)
CMYKcmyk(18%, 0%, 81%, 1%)
LABlab(93.0 -39.0 83.5)
LCHlch(93.0 92.2 115.1)
OKLCHoklch(0.926 0.215 122.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cefc2f on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#cefc2f on black: 17.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green98.8%
Blue18.4%

CMYK percentages

Cyan18.3%
Magenta0.0%
Yellow81.3%
Key (black)1.2%

Color previews

#cefc2f text on a black background

contrast 17.59:1

Card sample

#cefc2f text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 252, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 252, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cefc2f;
background: linear-gradient(135deg, #cefc2f, #45FC2F);

Monochromatic scale

Palettes built from #cefc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cefc2f in the Color Lab