Skip to content

#ccdf0c

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

RGB
204, 223, 12
HSL
65°, 90%, 46%
CMYK
9, 0, 95, 13
Luminance
0.6564

Every format

HEX#ccdf0c
RGBrgb(204, 223, 12)
HSLhsl(65, 90%, 46%)
CMYKcmyk(9%, 0%, 95%, 13%)
LABlab(84.8 -27.3 82.7)
LCHlch(84.8 87.0 108.3)
OKLCHoklch(0.860 0.195 115.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green87.5%
Blue4.7%

CMYK percentages

Cyan8.5%
Magenta0.0%
Yellow94.6%
Key (black)12.5%

Color previews

#ccdf0c text on a black background

contrast 14.13:1

Card sample

#ccdf0c text on a white background

contrast 1.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccdf0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccdf0c in the Color Lab