Skip to content

#1fdf0c

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

RGB
31, 223, 12
HSL
115°, 90%, 46%
CMYK
86, 0, 95, 13
Luminance
0.5309

Every format

HEX#1fdf0c
RGBrgb(31, 223, 12)
HSLhsl(115, 90%, 46%)
CMYKcmyk(86%, 0%, 95%, 13%)
LABlab(77.9 -76.1 74.3)
LCHlch(77.9 106.3 135.7)
OKLCHoklch(0.785 0.262 142.1)

Copy-ready code

/* CSS */
color: #1fdf0c;
background-color: #1fdf0c;
/* Tailwind (arbitrary) */
class="text-[#1fdf0c] bg-[#1fdf0c]"
/* SCSS */
$brand: #1fdf0c;
/* SwiftUI */
Color(red: 0.122, green: 0.875, blue: 0.047)
/* Android */
Color.parseColor("#1fdf0c")

Accessibility — WCAG contrast

Aa
#1fdf0c on white: 1.81:1
AA ✗ fail · AA-large · AAA
Aa
#1fdf0c on black: 11.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.2%
Green87.5%
Blue4.7%

CMYK percentages

Cyan86.1%
Magenta0.0%
Yellow94.6%
Key (black)12.5%

Color previews

#1fdf0c text on a black background

contrast 11.62:1

Card sample

#1fdf0c text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(31, 223, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 223, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1fdf0c;
background: linear-gradient(135deg, #1fdf0c, #0CDF86);

Monochromatic scale

Palettes built from #1fdf0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1fdf0c in the Color Lab