Skip to content

#ccc643

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

RGB
204, 198, 67
HSL
57°, 57%, 53%
CMYK
0, 3, 67, 20
Luminance
0.5363

Every format

HEX#ccc643
RGBrgb(204, 198, 67)
HSLhsl(57, 57%, 53%)
CMYKcmyk(0%, 3%, 67%, 20%)
LABlab(78.3 -13.4 63.4)
LCHlch(78.3 64.8 101.9)
OKLCHoklch(0.808 0.148 106.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc643 on white: 1.79:1
AA ✗ fail · AA-large · AAA
Aa
#ccc643 on black: 11.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green77.6%
Blue26.3%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow67.2%
Key (black)20.0%

Color previews

#ccc643 text on a black background

contrast 11.73:1

Card sample

#ccc643 text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc643

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc643 in the Color Lab