Skip to content

#ccc270

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

RGB
204, 194, 112
HSL
54°, 47%, 62%
CMYK
0, 5, 45, 20
Luminance
0.5259

Every format

HEX#ccc270
RGBrgb(204, 194, 112)
HSLhsl(54, 47%, 62%)
CMYKcmyk(0%, 5%, 45%, 20%)
LABlab(77.6 -7.9 42.3)
LCHlch(77.6 43.1 100.5)
OKLCHoklch(0.804 0.104 102.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc270 on white: 1.82:1
AA ✗ fail · AA-large · AAA
Aa
#ccc270 on black: 11.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green76.1%
Blue43.9%

CMYK percentages

Cyan0.0%
Magenta4.9%
Yellow45.1%
Key (black)20.0%

Color previews

#ccc270 text on a black background

contrast 11.52:1

Card sample

#ccc270 text on a white background

contrast 1.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 194, 112, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 194, 112, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc270;
background: linear-gradient(135deg, #ccc270, #99CC70);

Monochromatic scale

Palettes built from #ccc270

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc270 in the Color Lab