Skip to content

#ccc348

a balanced, vivid yellow · cool · closest name: khaki

RGB
204, 195, 72
HSL
56°, 56%, 54%
CMYK
0, 4, 65, 20
Luminance
0.5234

Every format

HEX#ccc348
RGBrgb(204, 195, 72)
HSLhsl(56, 56%, 54%)
CMYKcmyk(0%, 4%, 65%, 20%)
LABlab(77.5 -11.6 60.6)
LCHlch(77.5 61.7 100.8)
OKLCHoklch(0.802 0.142 105.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc348 on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#ccc348 on black: 11.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green76.5%
Blue28.2%

CMYK percentages

Cyan0.0%
Magenta4.4%
Yellow64.7%
Key (black)20.0%

Color previews

#ccc348 text on a black background

contrast 11.47:1

Card sample

#ccc348 text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc348

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc348 in the Color Lab