Skip to content

#ccdf12

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

RGB
204, 223, 18
HSL
66°, 85%, 47%
CMYK
9, 0, 92, 13
Luminance
0.6566

Every format

HEX#ccdf12
RGBrgb(204, 223, 18)
HSLhsl(66, 85%, 47%)
CMYKcmyk(9%, 0%, 92%, 13%)
LABlab(84.8 -27.2 82.0)
LCHlch(84.8 86.4 108.4)
OKLCHoklch(0.860 0.194 115.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccdf12 on white: 1.49:1
AA ✗ fail · AA-large · AAA
Aa
#ccdf12 on black: 14.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green87.5%
Blue7.1%

CMYK percentages

Cyan8.5%
Magenta0.0%
Yellow91.9%
Key (black)12.5%

Color previews

#ccdf12 text on a black background

contrast 14.13:1

Card sample

#ccdf12 text on a white background

contrast 1.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccdf12

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccdf12 in the Color Lab