Skip to content

#058e21

a dark, electric green · cool · closest name: Forest Green

RGB
5, 142, 33
HSL
132°, 93%, 29%
CMYK
97, 0, 77, 44
Luminance
0.1949

At a glance

Every number on this page in one read: what #058e21 is made of, how bright it looks, and which way it leans.

Hex
#058e21
Hue
132°
green
Saturation
93%
electric
Lightness
29%
dark
Brightness
56%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1949
WCAG relative
Temperature
Cool
68/100 cool
Color family
Green
Tone
Electric
Best ink
Black
4.90:1
Closest name
Forest Green
ΔE2000 1.4
Where it sits
Hue132° of 360°
Saturation93%
Lightness29%
Temperature
Warm ← → Cool68% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#058e21
RGBrgb(5, 142, 33)
HSLhsl(132, 93%, 29%)
CMYKcmyk(97%, 0%, 77%, 44%)
LABlab(51.3 -53.8 45.9)
LCHlch(51.3 70.7 139.5)
OKLCHoklch(0.562 0.178 144.4)
Decimal364065
Display P3color(display-p3 0.020 0.557 0.129)

Copy-ready code

/* CSS */
color: #058e21;
background-color: #058e21;
/* Tailwind (arbitrary) */
class="text-[#058e21] bg-[#058e21]"
/* SCSS */
$brand: #058e21;
/* SwiftUI */
Color(red: 0.020, green: 0.557, blue: 0.129)
/* Android */
Color.parseColor("#058e21")
/* Flutter */
Color(0xFF058E21)
/* Python / OpenCV (BGR) */
(33, 142, 5)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #058e21 · 4.90:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.29:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.90:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #058e21 as text scores 4.29:1 on white and 4.90:1 on black.

Accessibility — WCAG contrast

Aa
#058e21 on white: 4.29:1
AA ✗ fail · AA-large · AAA
Aa
#058e21 on black: 4.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #91800A
deuteranopia · #84772D
tritanopia · #008A79

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #058e21 is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F2FDF4
#E4FBE9
#C2F9CE
#93FBA8
#5CF97D
#26F751
#08EC37
#07C52E
#058e21
#09721E
#054713
Base = 800Lightest = 50 · #F2FDF4Darkest = 950 · #054713
:root {
  --brand-50: #F2FDF4;
  --brand-100: #E4FBE9;
  --brand-200: #C2F9CE;
  --brand-300: #93FBA8;
  --brand-400: #5CF97D;
  --brand-500: #26F751;
  --brand-600: #08EC37;
  --brand-700: #07C52E;
  --brand-800: #058e21;
  --brand-900: #09721E;
  --brand-950: #054713;
  --brand: #058e21;
  --brand-ink: #000000;
}

Colors that work with #058e21

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F4FAF6
Tinted page background
Border#C0EDC9
Hairlines and dividers
Muted text#4B9B5B
Captions on the surface
Accent#8A0291
Second voice, not a rival
Dark variant#047B1D
Hover, pressed, headers
Light variant#E6FEEB
Selected rows, tints
Dark surface#142417
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #058e21

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#8E0572
Analogous left#2D8E05
Analogous right#058E66
Split-complement 1#66058E
Split-complement 2#8E052D
Triadic 1#21058E
Triadic 2#8E2105
Tetradic#052D8E

RGB percentages

Red2.0%
Green55.7%
Blue12.9%

CMYK percentages

Cyan96.5%
Magenta0.0%
Yellow76.8%
Key (black)44.3%

Color previews

#058e21 text on a black background

contrast 4.90:1

Card sample

#058e21 text on a white background

contrast 4.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #058e21;
Background color
Panel with #058e21 background
background-color: #058e21;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(5, 142, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(5, 142, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #058e21;
background: linear-gradient(135deg, #058e21, #058E7C);

Monochromatic scale

Palettes built from #058e21

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#058e21 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#058e21, answered

What color is #058e21?

#058e21 is a dark electric green, closest to Forest Green (ΔE2000 1.4). It sits at 132° on the hue wheel with 93% saturation and 29% lightness, which reads as cool.

What is the RGB value of #058e21?

rgb(5, 142, 33) — 5 red, 142 green and 33 blue out of 255, or 2% / 55.7% / 12.9% by channel.

Is #058e21 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1949 and perceived brightness is 43%, so black text on it reaches 4.90:1.

Should I use black or white text on #058e21?

Black. It scores 4.90:1 against #058e21, versus 4.29:1 for white — AA at any size.

What is the complementary color of #058e21?

#8E0572 sits directly opposite on the wheel. Softer options are the split-complements #66058E and #8E052D, which give the same contrast with far less vibration.

What colors go well with #058e21?

For interface work: #F4FAF6 as the surface, #C0EDC9 for borders, #4B9B5B for secondary text, #8A0291 as an accent and #047B1D for hover and pressed states. For a palette, the analogous pair #2D8E05 and #058E66 stays calm, while #8E0572 is the loudest partner.

What is #058e21 in CMYK for printing?

cmyk(97%, 0%, 77%, 44%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #058e21 warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1B8E05; nudged cooler, #048F53.

Work with #058e21 in the Color Lab