Skip to content

#cefa2f

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

RGB
206, 250, 47
HSL
73°, 95%, 58%
CMYK
18, 0, 81, 2
Luminance
0.8170

Every format

HEX#cefa2f
RGBrgb(206, 250, 47)
HSLhsl(73, 95%, 58%)
CMYKcmyk(18%, 0%, 81%, 2%)
LABlab(92.4 -38.1 83.0)
LCHlch(92.4 91.4 114.7)
OKLCHoklch(0.922 0.213 122.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cefa2f on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#cefa2f on black: 17.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan17.6%
Magenta0.0%
Yellow81.2%
Key (black)2.0%

Color previews

#cefa2f text on a black background

contrast 17.34:1

Card sample

#cefa2f text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cefa2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cefa2f in the Color Lab