Skip to content

#c2cc4f

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

RGB
194, 204, 79
HSL
65°, 55%, 56%
CMYK
5, 0, 61, 20
Luminance
0.5522

Every format

HEX#c2cc4f
RGBrgb(194, 204, 79)
HSLhsl(65, 55%, 56%)
CMYKcmyk(5%, 0%, 61%, 20%)
LABlab(79.2 -19.8 59.3)
LCHlch(79.2 62.5 108.5)
OKLCHoklch(0.814 0.148 113.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2cc4f on white: 1.74:1
AA ✗ fail · AA-large · AAA
Aa
#c2cc4f on black: 12.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green80.0%
Blue31.0%

CMYK percentages

Cyan4.9%
Magenta0.0%
Yellow61.3%
Key (black)20.0%

Color previews

#c2cc4f text on a black background

contrast 12.04:1

Card sample

#c2cc4f text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2cc4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2cc4f in the Color Lab