Skip to content

#ccdf1f

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

RGB
204, 223, 31
HSL
66°, 76%, 50%
CMYK
9, 0, 86, 13
Luminance
0.6571

Every format

HEX#ccdf1f
RGBrgb(204, 223, 31)
HSLhsl(66, 76%, 50%)
CMYKcmyk(9%, 0%, 86%, 13%)
LABlab(84.8 -27.0 80.0)
LCHlch(84.8 84.4 108.6)
OKLCHoklch(0.860 0.191 115.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccdf1f on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#ccdf1f on black: 14.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green87.5%
Blue12.2%

CMYK percentages

Cyan8.5%
Magenta0.0%
Yellow86.1%
Key (black)12.5%

Color previews

#ccdf1f text on a black background

contrast 14.14:1

Card sample

#ccdf1f text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 223, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 223, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccdf1f;
background: linear-gradient(135deg, #ccdf1f, #4CDF1F);

Monochromatic scale

Palettes built from #ccdf1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccdf1f in the Color Lab