Skip to content

#c2da2f

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

RGB
194, 218, 47
HSL
68°, 70%, 52%
CMYK
11, 0, 78, 15
Luminance
0.6182

Every format

HEX#c2da2f
RGBrgb(194, 218, 47)
HSLhsl(68, 70%, 52%)
CMYKcmyk(11%, 0%, 78%, 15%)
LABlab(82.8 -28.2 74.2)
LCHlch(82.8 79.4 110.8)
OKLCHoklch(0.842 0.183 117.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2da2f on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#c2da2f on black: 13.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green85.5%
Blue18.4%

CMYK percentages

Cyan11.0%
Magenta0.0%
Yellow78.4%
Key (black)14.5%

Color previews

#c2da2f text on a black background

contrast 13.36:1

Card sample

#c2da2f text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 218, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 218, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2da2f;
background: linear-gradient(135deg, #c2da2f, #50DA2F);

Monochromatic scale

Palettes built from #c2da2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2da2f in the Color Lab