Skip to content

#cdec51

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

RGB
205, 236, 81
HSL
72°, 80%, 62%
CMYK
13, 0, 66, 8
Luminance
0.7356

Every format

HEX#cdec51
RGBrgb(205, 236, 81)
HSLhsl(72, 80%, 62%)
CMYKcmyk(13%, 0%, 66%, 8%)
LABlab(88.7 -30.6 68.8)
LCHlch(88.7 75.3 114.0)
OKLCHoklch(0.892 0.179 119.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdec51 on white: 1.34:1
AA ✗ fail · AA-large · AAA
Aa
#cdec51 on black: 15.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green92.5%
Blue31.8%

CMYK percentages

Cyan13.1%
Magenta0.0%
Yellow65.7%
Key (black)7.5%

Color previews

#cdec51 text on a black background

contrast 15.71:1

Card sample

#cdec51 text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 236, 81, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 236, 81, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdec51;
background: linear-gradient(135deg, #cdec51, #66EC51);

Monochromatic scale

Palettes built from #cdec51

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdec51 in the Color Lab