#4f9b0f
a dark, electric green · neutral · closest name: Olive Drab
At a glance
Every number on this page in one read: what #4f9b0f is made of, how bright it looks, and which way it leans.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #4f9b0f |
| RGB | rgb(79, 155, 15) |
| HSL | hsl(93, 82%, 33%) |
| CMYK | cmyk(49%, 0%, 90%, 39%) |
| LAB | lab(57.2 -45.2 57.0) |
| LCH | lch(57.2 72.7 128.4) |
| OKLCH | oklch(0.616 0.177 135.6) |
| Decimal | 5217039 |
| Display P3 | color(display-p3 0.310 0.608 0.059) |
Copy-ready code
/* CSS */
color: #4f9b0f;
background-color: #4f9b0f;
/* Tailwind (arbitrary) */
class="text-[#4f9b0f] bg-[#4f9b0f]"
/* SCSS */
$brand: #4f9b0f;
/* SwiftUI */
Color(red: 0.310, green: 0.608, blue: 0.059)
/* Android */
Color.parseColor("#4f9b0f")
/* Flutter */
Color(0xFF4F9B0F)
/* Python / OpenCV (BGR) */
(15, 155, 79)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #4f9b0f 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.
:root {
--brand-50: #F7FCF2;
--brand-100: #EFFAE6;
--brand-200: #DCF6C6;
--brand-300: #C3F599;
--brand-400: #A5F066;
--brand-500: #87EB32;
--brand-600: #72DF16;
--brand-700: #5FBA12;
--brand-800: #4f9b0f;
--brand-900: #396C0F;
--brand-950: #244309;
--brand: #4f9b0f;
--brand-ink: #000000;
}Colors that work with #4f9b0f
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #4f9b0f
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #5B0F9B | Directly opposite — maximum tension | |
| Analogous left | #959B0F | Neighbour, quieter | |
| Analogous right | #0F9B15 | Neighbour, quieter | |
| Split-complement 1 | #150F9B | Contrast without the clash | |
| Split-complement 2 | #9B0F95 | Contrast without the clash | |
| Triadic 1 | #0F4F9B | Even thirds — balanced and loud | |
| Triadic 2 | #9B0F4F | Even thirds — balanced and loud | |
| Tetradic | #0F959B | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#4f9b0f text on a black background
contrast 6.03:1
#4f9b0f text on a white background
contrast 3.48:1
CSS3 live lab
The quick brown fox
color: #4f9b0f;
background-color: #4f9b0f;
Glowing headline
text-shadow: 2px 2px 8px #4f9b0f;
Soft neon halo
text-shadow: 0 0 14px rgba(79, 155, 15, 0.45);
box-shadow: 0 12px 32px -8px rgba(79, 155, 15, 0.45);
border: 3px solid #4f9b0f; background: linear-gradient(135deg, #4f9b0f, #0F9B2C);
Monochromatic scale
Palettes built from #4f9b0f
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.
Closest color with a full write-up: Forest Green (#228b22) — ΔE2000 8.1 away, with its history, psychology and brand usage.
#4f9b0f in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#4f9b0f, answered
What color is #4f9b0f?
#4f9b0f is a dark electric green, closest to Olive Drab (ΔE2000 6.6). It sits at 93° on the hue wheel with 82% saturation and 33% lightness, which reads as neutral.
What is the RGB value of #4f9b0f?
rgb(79, 155, 15) — 79 red, 155 green and 15 blue out of 255, or 31% / 60.8% / 5.9% by channel.
Is #4f9b0f a light or a dark color?
It is a mid-tone. Relative luminance is 0.2514 and perceived brightness is 50%, so black text on it reaches 6.03:1.
Should I use black or white text on #4f9b0f?
Black. It scores 6.03:1 against #4f9b0f, versus 3.48:1 for white — AA at any size.
What is the complementary color of #4f9b0f?
#5B0F9B sits directly opposite on the wheel. Softer options are the split-complements #150F9B and #9B0F95, which give the same contrast with far less vibration.
What colors go well with #4f9b0f?
For interface work: #F7FAF4 as the surface, #D4EDC0 for borders, #6F9B4B for secondary text, #370C9E as an accent and #3B740B for hover and pressed states. For a palette, the analogous pair #959B0F and #0F9B15 stays calm, while #5B0F9B is the loudest partner.
What is #4f9b0f in CMYK for printing?
cmyk(49%, 0%, 90%, 39%). 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 #4f9b0f warm or cool?
Neutral — it scores 51 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #829B0F; nudged cooler, #1A9D0D.