Skip to content

#ccc862

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

RGB
204, 200, 98
HSL
58°, 51%, 59%
CMYK
0, 2, 52, 20
Luminance
0.5503

Every format

HEX#ccc862
RGBrgb(204, 200, 98)
HSLhsl(58, 51%, 59%)
CMYKcmyk(0%, 2%, 52%, 20%)
LABlab(79.1 -12.2 50.9)
LCHlch(79.1 52.3 103.5)
OKLCHoklch(0.815 0.125 106.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc862 on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#ccc862 on black: 12.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green78.4%
Blue38.4%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow52.0%
Key (black)20.0%

Color previews

#ccc862 text on a black background

contrast 12.01:1

Card sample

#ccc862 text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc862

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc862 in the Color Lab