Skip to content

#c2d45f

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

RGB
194, 212, 95
HSL
69°, 58%, 60%
CMYK
9, 0, 55, 17
Luminance
0.5938

Every format

HEX#c2d45f
RGBrgb(194, 212, 95)
HSLhsl(69, 58%, 60%)
CMYKcmyk(9%, 0%, 55%, 17%)
LABlab(81.5 -22.5 54.9)
LCHlch(81.5 59.3 112.3)
OKLCHoklch(0.833 0.143 116.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2d45f on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#c2d45f on black: 12.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green83.1%
Blue37.3%

CMYK percentages

Cyan8.5%
Magenta0.0%
Yellow55.2%
Key (black)16.9%

Color previews

#c2d45f text on a black background

contrast 12.88:1

Card sample

#c2d45f text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 212, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 212, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2d45f;
background: linear-gradient(135deg, #c2d45f, #74D45F);

Monochromatic scale

Palettes built from #c2d45f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2d45f in the Color Lab