Skip to content

#cdec2f

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

RGB
205, 236, 47
HSL
70°, 83%, 56%
CMYK
13, 0, 80, 8
Luminance
0.7318

Every format

HEX#cdec2f
RGBrgb(205, 236, 47)
HSLhsl(70, 83%, 56%)
CMYKcmyk(13%, 0%, 80%, 8%)
LABlab(88.5 -32.2 79.6)
LCHlch(88.5 85.8 112.0)
OKLCHoklch(0.890 0.198 119.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green92.5%
Blue18.4%

CMYK percentages

Cyan13.1%
Magenta0.0%
Yellow80.1%
Key (black)7.5%

Color previews

#cdec2f text on a black background

contrast 15.64:1

Card sample

#cdec2f text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdec2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdec2f in the Color Lab