Skip to content

#cccf02

a dark, electric yellow · cool · closest name: gold

RGB
204, 207, 2
HSL
61°, 98%, 41%
CMYK
1, 0, 99, 19
Luminance
0.5747

Every format

HEX#cccf02
RGBrgb(204, 207, 2)
HSLhsl(61, 98%, 41%)
CMYKcmyk(1%, 0%, 99%, 19%)
LABlab(80.4 -19.7 80.3)
LCHlch(80.4 82.6 103.8)
OKLCHoklch(0.825 0.181 110.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cccf02 on white: 1.68:1
AA ✗ fail · AA-large · AAA
Aa
#cccf02 on black: 12.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green81.2%
Blue0.8%

CMYK percentages

Cyan1.4%
Magenta0.0%
Yellow99.0%
Key (black)18.8%

Color previews

#cccf02 text on a black background

contrast 12.49:1

Card sample

#cccf02 text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cccf02

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cccf02 in the Color Lab