Skip to content

#2f5d10

a deep, vivid green · cool · closest name: olivedrab

RGB
47, 93, 16
HSL
96°, 71%, 21%
CMYK
50, 0, 83, 64
Luminance
0.0847

Every format

HEX#2f5d10
RGBrgb(47, 93, 16)
HSLhsl(96, 71%, 21%)
CMYKcmyk(50%, 0%, 83%, 64%)
LABlab(34.9 -30.0 36.4)
LCHlch(34.9 47.2 129.5)
OKLCHoklch(0.429 0.117 135.9)

Copy-ready code

/* CSS */
color: #2f5d10;
background-color: #2f5d10;
/* Tailwind (arbitrary) */
class="text-[#2f5d10] bg-[#2f5d10]"
/* SCSS */
$brand: #2f5d10;
/* SwiftUI */
Color(red: 0.184, green: 0.365, blue: 0.063)
/* Android */
Color.parseColor("#2f5d10")

Accessibility — WCAG contrast

Aa
#2f5d10 on white: 7.79:1
AA ✓ pass · AA-large · AAA
Aa
#2f5d10 on black: 2.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green36.5%
Blue6.3%

CMYK percentages

Cyan49.5%
Magenta0.0%
Yellow82.8%
Key (black)63.5%

Color previews

#2f5d10 text on a black background

contrast 2.69:1

Card sample

#2f5d10 text on a white background

contrast 7.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 93, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 93, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f5d10;
background: linear-gradient(135deg, #2f5d10, #105D24);

Monochromatic scale

Palettes built from #2f5d10

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f5d10 in the Color Lab