Skip to content

#1fad21

a dark, vivid green · cool · closest name: green

RGB
31, 173, 33
HSL
121°, 70%, 40%
CMYK
82, 0, 81, 32
Luminance
0.3029

Every format

HEX#1fad21
RGBrgb(31, 173, 33)
HSLhsl(121, 70%, 40%)
CMYKcmyk(82%, 0%, 81%, 32%)
LABlab(61.9 -61.0 56.3)
LCHlch(61.9 83.0 137.3)
OKLCHoklch(0.652 0.207 142.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1fad21 on white: 2.98:1
AA ✗ fail · AA-large · AAA
Aa
#1fad21 on black: 7.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.2%
Green67.8%
Blue12.9%

CMYK percentages

Cyan82.1%
Magenta0.0%
Yellow80.9%
Key (black)32.2%

Color previews

#1fad21 text on a black background

contrast 7.06:1

Card sample

#1fad21 text on a white background

contrast 2.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1fad21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1fad21 in the Color Lab