Skip to content

#c2f308

a balanced, electric green · cool · closest name: yellow

RGB
194, 243, 8
HSL
73°, 94%, 49%
CMYK
20, 0, 97, 5
Luminance
0.7559

Every format

HEX#c2f308
RGBrgb(194, 243, 8)
HSLhsl(73, 94%, 49%)
CMYKcmyk(20%, 0%, 97%, 5%)
LABlab(89.7 -40.5 86.4)
LCHlch(89.7 95.4 115.1)
OKLCHoklch(0.897 0.220 123.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2f308 on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#c2f308 on black: 16.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green95.3%
Blue3.1%

CMYK percentages

Cyan20.2%
Magenta0.0%
Yellow96.7%
Key (black)4.7%

Color previews

#c2f308 text on a black background

contrast 16.12:1

Card sample

#c2f308 text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 243, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 243, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2f308;
background: linear-gradient(135deg, #c2f308, #25F308);

Monochromatic scale

Palettes built from #c2f308

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2f308 in the Color Lab