Skip to content

#057a21

a deep, electric green · cool · closest name: Green

RGB
5, 122, 33
HSL
134°, 92%, 25%
CMYK
96, 0, 73, 52
Luminance
0.1406

At a glance

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

Hex
#057a21
Hue
134°
green
Saturation
92%
electric
Lightness
25%
deep
Brightness
48%
HSV value
Perceived
37%
weighted brightness
Luminance
0.1406
WCAG relative
Temperature
Cool
69/100 cool
Color family
Green
Tone
Electric
Best ink
White
5.51:1
Closest name
Green
ΔE2000 3.9
Where it sits
Hue134° of 360°
Saturation92%
Lightness25%
Temperature
Warm ← → Cool69% 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#057a21
RGBrgb(5, 122, 33)
HSLhsl(134, 92%, 25%)
CMYKcmyk(96%, 0%, 73%, 52%)
LABlab(44.3 -47.5 38.8)
LCHlch(44.3 61.4 140.7)
OKLCHoklch(0.504 0.156 145.2)
Decimal358945
Display P3color(display-p3 0.020 0.478 0.129)

Copy-ready code

/* CSS */
color: #057a21;
background-color: #057a21;
/* Tailwind (arbitrary) */
class="text-[#057a21] bg-[#057a21]"
/* SCSS */
$brand: #057a21;
/* SwiftUI */
Color(red: 0.020, green: 0.478, blue: 0.129)
/* Android */
Color.parseColor("#057a21")
/* Flutter */
Color(0xFF057A21)
/* Python / OpenCV (BGR) */
(33, 122, 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#ffffff on #057a21 · 5.51:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.51:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.81:1
AA fail · AA large pass · AAA fail
Reading the other direction: #057a21 as text scores 5.51:1 on white and 3.81:1 on black.

Accessibility — WCAG contrast

Aa
#057a21 on white: 5.51:1
AA ✓ pass · AA-large · AAA
Aa
#057a21 on black: 3.81:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #7C6E13
deuteranopia · #71662A
tritanopia · #007768

Color scale — 50 to 950

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

#F2FDF4
#E4FBEA
#C3F9D0
#93FBAC
#5DF883
#27F659
#0AEB40
#08C435
#069D2B
#057a21
#064715
Base = 900Lightest = 50 · #F2FDF4Darkest = 950 · #064715
:root {
  --brand-50: #F2FDF4;
  --brand-100: #E4FBEA;
  --brand-200: #C3F9D0;
  --brand-300: #93FBAC;
  --brand-400: #5DF883;
  --brand-500: #27F659;
  --brand-600: #0AEB40;
  --brand-700: #08C435;
  --brand-800: #069D2B;
  --brand-900: #057a21;
  --brand-950: #064715;
  --brand: #057a21;
  --brand-ink: #ffffff;
}

Colors that work with #057a21

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

Text on it#ffffff
White wins here
Surface#F4FAF6
Tinted page background
Border#C0EDCB
Hairlines and dividers
Muted text#4B9B5E
Captions on the surface
Accent#7B027D
Second voice, not a rival
Dark variant#057A21
Hover, pressed, headers
Light variant#E7FEEC
Selected rows, tints
Dark surface#142418
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 #057a21

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

Works well for
  • Body text and links on white
  • 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
  • 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#7A055E
Analogous left#237A05
Analogous right#057A5C
Split-complement 1#5C057A
Split-complement 2#7A0523
Triadic 1#21057A
Triadic 2#7A2105
Tetradic#05237A

RGB percentages

Red2.0%
Green47.8%
Blue12.9%

CMYK percentages

Cyan95.9%
Magenta0.0%
Yellow73.0%
Key (black)52.2%

Color previews

#057a21 text on a black background

contrast 3.81:1

Card sample

#057a21 text on a white background

contrast 5.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #057a21;
Background color
Panel with #057a21 background
background-color: #057a21;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #057a21

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.

#057a21 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.

#057a21, answered

What color is #057a21?

#057a21 is a deep electric green, closest to Green (ΔE2000 3.9). It sits at 134° on the hue wheel with 92% saturation and 25% lightness, which reads as cool.

What is the RGB value of #057a21?

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

Is #057a21 a light or a dark color?

It is a dark color. Relative luminance is 0.1406 and perceived brightness is 37%, so white text on it reaches 5.51:1.

Should I use black or white text on #057a21?

White. It scores 5.51:1 against #057a21, versus 3.81:1 for black — AA at any size.

What is the complementary color of #057a21?

#7A055E sits directly opposite on the wheel. Softer options are the split-complements #5C057A and #7A0523, which give the same contrast with far less vibration.

What colors go well with #057a21?

For interface work: #F4FAF6 as the surface, #C0EDCB for borders, #4B9B5E for secondary text, #7B027D as an accent and #057A21 for hover and pressed states. For a palette, the analogous pair #237A05 and #057A5C stays calm, while #7A055E is the loudest partner.

What is #057a21 in CMYK for printing?

cmyk(96%, 0%, 73%, 52%). 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 #057a21 warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #147A05; nudged cooler, #047B4C.

Work with #057a21 in the Color Lab