Skip to content

#c2f1af

a light, vivid green · cool · closest name: khaki

RGB
194, 241, 175
HSL
103°, 70%, 82%
CMYK
20, 0, 27, 6
Luminance
0.7748

Every format

HEX#c2f1af
RGBrgb(194, 241, 175)
HSLhsl(103, 70%, 82%)
CMYKcmyk(20%, 0%, 27%, 6%)
LABlab(90.5 -26.9 27.1)
LCHlch(90.5 38.2 134.8)
OKLCHoklch(0.909 0.100 136.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2f1af on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#c2f1af on black: 16.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green94.5%
Blue68.6%

CMYK percentages

Cyan19.5%
Magenta0.0%
Yellow27.4%
Key (black)5.5%

Color previews

#c2f1af text on a black background

contrast 16.50:1

Card sample

#c2f1af text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2f1af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2f1af in the Color Lab