Skip to content

#4f780d

a dark, electric green · neutral · closest name: Dark Olive Green

RGB
79, 120, 13
HSL
83°, 81%, 26%
CMYK
34, 0, 89, 53
Luminance
0.1512

At a glance

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

Hex
#4f780d
Hue
83°
green
Saturation
81%
electric
Lightness
26%
dark
Brightness
47%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1512
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Green
Tone
Electric
Best ink
White
5.22:1
Closest name
Dark Olive Green
ΔE2000 7.5
Where it sits
Hue83° of 360°
Saturation81%
Lightness26%
Temperature
Warm ← → Cool44% cool

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

Every format

HEX#4f780d
RGBrgb(79, 120, 13)
HSLhsl(83, 81%, 26%)
CMYKcmyk(34%, 0%, 89%, 53%)
LABlab(45.8 -30.3 47.7)
LCHlch(45.8 56.5 122.4)
OKLCHoklch(0.523 0.135 129.9)
Decimal5208077
Display P3color(display-p3 0.310 0.471 0.051)

Copy-ready code

/* CSS */
color: #4f780d;
background-color: #4f780d;
/* Tailwind (arbitrary) */
class="text-[#4f780d] bg-[#4f780d]"
/* SCSS */
$brand: #4f780d;
/* SwiftUI */
Color(red: 0.310, green: 0.471, blue: 0.051)
/* Android */
Color.parseColor("#4f780d")
/* Flutter */
Color(0xFF4F780D)
/* Python / OpenCV (BGR) */
(13, 120, 79)

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

Accessibility — WCAG contrast

Aa
#4f780d on white: 5.22:1
AA ✓ pass · AA-large · AAA
Aa
#4f780d on black: 4.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #7E6E00
deuteranopia · #786B1B
tritanopia · #517265

Color scale — 50 to 950

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

#F8FCF3
#F2F9E6
#E3F5C6
#D1F49A
#BBEF67
#A4E934
#91DD18
#79B814
#619310
#4f780d
#2D430A
Base = 900Lightest = 50 · #F8FCF3Darkest = 950 · #2D430A
:root {
  --brand-50: #F8FCF3;
  --brand-100: #F2F9E6;
  --brand-200: #E3F5C6;
  --brand-300: #D1F49A;
  --brand-400: #BBEF67;
  --brand-500: #A4E934;
  --brand-600: #91DD18;
  --brand-700: #79B814;
  --brand-800: #619310;
  --brand-900: #4f780d;
  --brand-950: #2D430A;
  --brand: #4f780d;
  --brand-ink: #ffffff;
}

Colors that work with #4f780d

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#F8FAF4
Tinted page background
Border#DBEDC0
Hairlines and dividers
Muted text#7C9B4B
Captions on the surface
Accent#190A7B
Second voice, not a rival
Dark variant#4C730C
Hover, pressed, headers
Light variant#F5FDE8
Selected rows, tints
Dark surface#1E2414
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 #4f780d

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#360D78
Analogous left#786C0D
Analogous right#19780D
Split-complement 1#0D1978
Split-complement 2#6C0D78
Triadic 1#0D4F78
Triadic 2#780D4F
Tetradic#0D786C

RGB percentages

Red31.0%
Green47.1%
Blue5.1%

CMYK percentages

Cyan34.2%
Magenta0.0%
Yellow89.2%
Key (black)52.9%

Color previews

#4f780d text on a black background

contrast 4.02:1

Card sample

#4f780d text on a white background

contrast 5.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4f780d;
Background color
Panel with #4f780d background
background-color: #4f780d;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4f780d;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(79, 120, 13, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 120, 13, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f780d;
background: linear-gradient(135deg, #4f780d, #0D7812);

Monochromatic scale

Palettes built from #4f780d

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.

#4f780d 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.

#4f780d, answered

What color is #4f780d?

#4f780d is a dark electric green, closest to Dark Olive Green (ΔE2000 7.5). It sits at 83° on the hue wheel with 81% saturation and 26% lightness, which reads as neutral.

What is the RGB value of #4f780d?

rgb(79, 120, 13) — 79 red, 120 green and 13 blue out of 255, or 31% / 47.1% / 5.1% by channel.

Is #4f780d a light or a dark color?

It is a dark color. Relative luminance is 0.1512 and perceived brightness is 40%, so white text on it reaches 5.22:1.

Should I use black or white text on #4f780d?

White. It scores 5.22:1 against #4f780d, versus 4.02:1 for black — AA at any size.

What is the complementary color of #4f780d?

#360D78 sits directly opposite on the wheel. Softer options are the split-complements #0D1978 and #6C0D78, which give the same contrast with far less vibration.

What colors go well with #4f780d?

For interface work: #F8FAF4 as the surface, #DBEDC0 for borders, #7C9B4B for secondary text, #190A7B as an accent and #4C730C for hover and pressed states. For a palette, the analogous pair #786C0D and #19780D stays calm, while #360D78 is the loudest partner.

What is #4f780d in CMYK for printing?

cmyk(34%, 0%, 89%, 53%). 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 #4f780d warm or cool?

Neutral — it scores 44 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #76780D; nudged cooler, #27790C.

Work with #4f780d in the Color Lab