Skip to content

#166f16

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

RGB
22, 111, 22
HSL
120°, 67%, 26%
CMYK
80, 0, 80, 57
Luminance
0.1160

Every format

HEX#166f16
RGBrgb(22, 111, 22)
HSLhsl(120, 67%, 26%)
CMYKcmyk(80%, 0%, 80%, 57%)
LABlab(40.6 -43.0 39.4)
LCHlch(40.6 58.3 137.5)
OKLCHoklch(0.474 0.146 142.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#166f16 on white: 6.33:1
AA ✓ pass · AA-large · AAA
Aa
#166f16 on black: 3.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red8.6%
Green43.5%
Blue8.6%

CMYK percentages

Cyan80.2%
Magenta0.0%
Yellow80.2%
Key (black)56.5%

Color previews

#166f16 text on a black background

contrast 3.32:1

Card sample

#166f16 text on a white background

contrast 6.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(22, 111, 22, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 111, 22, 0.45);
Border & gradient
Gradient panel
border: 3px solid #166f16;
background: linear-gradient(135deg, #166f16, #166F51);

Monochromatic scale

Palettes built from #166f16

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #166f16 in the Color Lab