Skip to content

#7cbc21

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

RGB
124, 188, 33
HSL
85°, 70%, 43%
CMYK
34, 0, 82, 26
Luminance
0.4036

Every format

HEX#7cbc21
RGBrgb(124, 188, 33)
HSLhsl(85, 70%, 43%)
CMYKcmyk(34%, 0%, 82%, 26%)
LABlab(69.7 -42.6 64.6)
LCHlch(69.7 77.4 123.4)
OKLCHoklch(0.725 0.186 130.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7cbc21 on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#7cbc21 on black: 9.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red48.6%
Green73.7%
Blue12.9%

CMYK percentages

Cyan34.0%
Magenta0.0%
Yellow82.4%
Key (black)26.3%

Color previews

#7cbc21 text on a black background

contrast 9.07:1

Card sample

#7cbc21 text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7cbc21;
Background color
Panel with #7cbc21 background
background-color: #7cbc21;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(124, 188, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(124, 188, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7cbc21;
background: linear-gradient(135deg, #7cbc21, #21BC2D);

Monochromatic scale

Palettes built from #7cbc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7cbc21 in the Color Lab