Skip to content

#047f2d

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

RGB
4, 127, 45
HSL
140°, 94%, 26%
CMYK
97, 0, 65, 50
Luminance
0.1539

At a glance

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

Hex
#047f2d
Hue
140°
green
Saturation
94%
electric
Lightness
26%
dark
Brightness
50%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1539
WCAG relative
Temperature
Cool
71/100 cool
Color family
Green
Tone
Electric
Best ink
White
5.15:1
Closest name
Green
ΔE2000 4.8
Where it sits
Hue140° of 360°
Saturation94%
Lightness26%
Temperature
Warm ← → Cool71% 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#047f2d
RGBrgb(4, 127, 45)
HSLhsl(140, 94%, 26%)
CMYKcmyk(97%, 0%, 65%, 50%)
LABlab(46.2 -47.8 35.4)
LCHlch(46.2 59.5 143.5)
OKLCHoklch(0.520 0.153 147.1)
Decimal294701
Display P3color(display-p3 0.016 0.498 0.176)

Copy-ready code

/* CSS */
color: #047f2d;
background-color: #047f2d;
/* Tailwind (arbitrary) */
class="text-[#047f2d] bg-[#047f2d]"
/* SCSS */
$brand: #047f2d;
/* SwiftUI */
Color(red: 0.016, green: 0.498, blue: 0.176)
/* Android */
Color.parseColor("#047f2d")
/* Flutter */
Color(0xFF047F2D)
/* Python / OpenCV (BGR) */
(45, 127, 4)

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 #047f2d · 5.15:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.15:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.08:1
AA fail · AA large pass · AAA fail
Reading the other direction: #047f2d as text scores 5.15:1 on white and 4.08:1 on black.

Accessibility — WCAG contrast

Aa
#047f2d on white: 5.15:1
AA ✓ pass · AA-large · AAA
Aa
#047f2d on black: 4.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #817224
deuteranopia · #756A34
tritanopia · #007C6E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #047f2d 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.

#F2FDF5
#E4FBEC
#C2FAD5
#92FCB5
#5CFA91
#25F86C
#07ED54
#06C646
#059E38
#047f2d
#05471B
Base = 900Lightest = 50 · #F2FDF5Darkest = 950 · #05471B
:root {
  --brand-50: #F2FDF5;
  --brand-100: #E4FBEC;
  --brand-200: #C2FAD5;
  --brand-300: #92FCB5;
  --brand-400: #5CFA91;
  --brand-500: #25F86C;
  --brand-600: #07ED54;
  --brand-700: #06C646;
  --brand-800: #059E38;
  --brand-900: #047f2d;
  --brand-950: #05471B;
  --brand: #047f2d;
  --brand-ink: #ffffff;
}

Colors that work with #047f2d

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#C0EDCF
Hairlines and dividers
Muted text#4B9B65
Captions on the surface
Accent#820177
Second voice, not a rival
Dark variant#047C2C
Hover, pressed, headers
Light variant#E6FEEE
Selected rows, tints
Dark surface#142419
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 #047f2d

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#7F0456
Analogous left#197F04
Analogous right#047F6B
Split-complement 1#6B047F
Split-complement 2#7F0419
Triadic 1#2D047F
Triadic 2#7F2D04
Tetradic#04197F

RGB percentages

Red1.6%
Green49.8%
Blue17.6%

CMYK percentages

Cyan96.9%
Magenta0.0%
Yellow64.6%
Key (black)50.2%

Color previews

#047f2d text on a black background

contrast 4.08:1

Card sample

#047f2d text on a white background

contrast 5.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #047f2d;
Background color
Panel with #047f2d background
background-color: #047f2d;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #047f2d;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(4, 127, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(4, 127, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #047f2d;
background: linear-gradient(135deg, #047f2d, #047F7F);

Monochromatic scale

Palettes built from #047f2d

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.

#047f2d 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.

#047f2d, answered

What color is #047f2d?

#047f2d is a dark electric green, closest to Green (ΔE2000 4.8). It sits at 140° on the hue wheel with 94% saturation and 26% lightness, which reads as cool.

What is the RGB value of #047f2d?

rgb(4, 127, 45) — 4 red, 127 green and 45 blue out of 255, or 1.6% / 49.8% / 17.6% by channel.

Is #047f2d a light or a dark color?

It is a dark color. Relative luminance is 0.1539 and perceived brightness is 39%, so white text on it reaches 5.15:1.

Should I use black or white text on #047f2d?

White. It scores 5.15:1 against #047f2d, versus 4.08:1 for black — AA at any size.

What is the complementary color of #047f2d?

#7F0456 sits directly opposite on the wheel. Softer options are the split-complements #6B047F and #7F0419, which give the same contrast with far less vibration.

What colors go well with #047f2d?

For interface work: #F4FAF6 as the surface, #C0EDCF for borders, #4B9B65 for secondary text, #820177 as an accent and #047C2C for hover and pressed states. For a palette, the analogous pair #197F04 and #047F6B stays calm, while #7F0456 is the loudest partner.

What is #047f2d in CMYK for printing?

cmyk(97%, 0%, 65%, 50%). 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 #047f2d warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #087F04; nudged cooler, #03805B.

Work with #047f2d in the Color Lab