Skip to content

#cccf0c

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

RGB
204, 207, 12
HSL
61°, 89%, 43%
CMYK
1, 0, 94, 19
Luminance
0.5749

Every format

HEX#cccf0c
RGBrgb(204, 207, 12)
HSLhsl(61, 89%, 43%)
CMYKcmyk(1%, 0%, 94%, 19%)
LABlab(80.5 -19.6 79.3)
LCHlch(80.5 81.7 103.9)
OKLCHoklch(0.825 0.179 110.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green81.2%
Blue4.7%

CMYK percentages

Cyan1.4%
Magenta0.0%
Yellow94.2%
Key (black)18.8%

Color previews

#cccf0c text on a black background

contrast 12.50:1

Card sample

#cccf0c text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cccf0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cccf0c in the Color Lab