Skip to content

#6fab21

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

RGB
111, 171, 33
HSL
86°, 68%, 40%
CMYK
35, 0, 81, 33
Luminance
0.3262

Every format

HEX#6fab21
RGBrgb(111, 171, 33)
HSLhsl(86, 68%, 40%)
CMYKcmyk(35%, 0%, 81%, 33%)
LABlab(63.9 -40.0 59.1)
LCHlch(63.9 71.4 124.1)
OKLCHoklch(0.675 0.173 131.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6fab21 on white: 2.79:1
AA ✗ fail · AA-large · AAA
Aa
#6fab21 on black: 7.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red43.5%
Green67.1%
Blue12.9%

CMYK percentages

Cyan35.1%
Magenta0.0%
Yellow80.7%
Key (black)32.9%

Color previews

#6fab21 text on a black background

contrast 7.52:1

Card sample

#6fab21 text on a white background

contrast 2.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6fab21;
Background color
Panel with #6fab21 background
background-color: #6fab21;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(111, 171, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(111, 171, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6fab21;
background: linear-gradient(135deg, #6fab21, #21AB2F);

Monochromatic scale

Palettes built from #6fab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6fab21 in the Color Lab