Skip to content

#417f21

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

RGB
65, 127, 33
HSL
100°, 59%, 31%
CMYK
49, 0, 74, 50
Luminance
0.1641

Every format

HEX#417f21
RGBrgb(65, 127, 33)
HSLhsl(100, 59%, 31%)
CMYKcmyk(49%, 0%, 74%, 50%)
LABlab(47.5 -37.4 42.6)
LCHlch(47.5 56.7 131.3)
OKLCHoklch(0.535 0.141 137.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#417f21 on white: 4.90:1
AA ✓ pass · AA-large · AAA
Aa
#417f21 on black: 4.28:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.5%
Green49.8%
Blue12.9%

CMYK percentages

Cyan48.8%
Magenta0.0%
Yellow74.0%
Key (black)50.2%

Color previews

#417f21 text on a black background

contrast 4.28:1

Card sample

#417f21 text on a white background

contrast 4.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(65, 127, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(65, 127, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #417f21;
background: linear-gradient(135deg, #417f21, #217F40);

Monochromatic scale

Palettes built from #417f21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #417f21 in the Color Lab