Skip to content

#1baf2d

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

RGB
27, 175, 45
HSL
127°, 73%, 40%
CMYK
85, 0, 74, 31
Luminance
0.3108

Every format

HEX#1baf2d
RGBrgb(27, 175, 45)
HSLhsl(127, 73%, 40%)
CMYKcmyk(85%, 0%, 74%, 31%)
LABlab(62.6 -61.1 53.0)
LCHlch(62.6 81.0 139.1)
OKLCHoklch(0.657 0.204 144.0)

Copy-ready code

/* CSS */
color: #1baf2d;
background-color: #1baf2d;
/* Tailwind (arbitrary) */
class="text-[#1baf2d] bg-[#1baf2d]"
/* SCSS */
$brand: #1baf2d;
/* SwiftUI */
Color(red: 0.106, green: 0.686, blue: 0.176)
/* Android */
Color.parseColor("#1baf2d")

Accessibility — WCAG contrast

Aa
#1baf2d on white: 2.91:1
AA ✗ fail · AA-large · AAA
Aa
#1baf2d on black: 7.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red10.6%
Green68.6%
Blue17.6%

CMYK percentages

Cyan84.6%
Magenta0.0%
Yellow74.3%
Key (black)31.4%

Color previews

#1baf2d text on a black background

contrast 7.22:1

Card sample

#1baf2d text on a white background

contrast 2.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #1baf2d;
Background color
Panel with #1baf2d background
background-color: #1baf2d;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(27, 175, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(27, 175, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1baf2d;
background: linear-gradient(135deg, #1baf2d, #1BAF90);

Monochromatic scale

Palettes built from #1baf2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1baf2d in the Color Lab