Skip to content

#7ba02a

a dark, vivid green · warm · closest name: Olive Drab

RGB
123, 160, 42
HSL
79°, 58%, 40%
CMYK
23, 0, 74, 37
Luminance
0.2952

At a glance

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

Hex
#7ba02a
Hue
79°
green
Saturation
58%
vivid
Lightness
40%
dark
Brightness
63%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2952
WCAG relative
Temperature
Warm
41/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
6.90:1
Closest name
Olive Drab
ΔE2000 6.1
Where it sits
Hue79° of 360°
Saturation58%
Lightness40%
Temperature
Warm ← → Cool41% cool

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

Every format

HEX#7ba02a
RGBrgb(123, 160, 42)
HSLhsl(79, 58%, 40%)
CMYKcmyk(23%, 0%, 74%, 37%)
LABlab(61.2 -29.9 53.9)
LCHlch(61.2 61.7 119.0)
OKLCHoklch(0.656 0.148 125.7)
Decimal8101930
Display P3color(display-p3 0.482 0.627 0.165)

Copy-ready code

/* CSS */
color: #7ba02a;
background-color: #7ba02a;
/* Tailwind (arbitrary) */
class="text-[#7ba02a] bg-[#7ba02a]"
/* SCSS */
$brand: #7ba02a;
/* SwiftUI */
Color(red: 0.482, green: 0.627, blue: 0.165)
/* Android */
Color.parseColor("#7ba02a")
/* Flutter */
Color(0xFF7BA02A)
/* Python / OpenCV (BGR) */
(42, 160, 123)

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

Accessibility — WCAG contrast

Aa
#7ba02a on white: 3.04:1
AA ✗ fail · AA-large · AAA
Aa
#7ba02a on black: 6.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A99513
deuteranopia · #A49335
tritanopia · #809889

Color scale — 50 to 950

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

#F9FBF4
#F2F7E9
#E4EFCD
#D3E8A6
#BDDC7A
#A7D04D
#95C233
#7ba02a
#638122
#495E1C
#2E3B12
Base = 700Lightest = 50 · #F9FBF4Darkest = 950 · #2E3B12
:root {
  --brand-50: #F9FBF4;
  --brand-100: #F2F7E9;
  --brand-200: #E4EFCD;
  --brand-300: #D3E8A6;
  --brand-400: #BDDC7A;
  --brand-500: #A7D04D;
  --brand-600: #95C233;
  --brand-700: #7ba02a;
  --brand-800: #638122;
  --brand-900: #495E1C;
  --brand-950: #2E3B12;
  --brand: #7ba02a;
  --brand-ink: #000000;
}

Colors that work with #7ba02a

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#F8FAF4
Tinted page background
Border#DFEDC0
Hairlines and dividers
Muted text#829B4B
Captions on the surface
Accent#2E26A4
Second voice, not a rival
Dark variant#4E651B
Hover, pressed, headers
Light variant#F5FAEB
Selected rows, tints
Dark surface#1F2414
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 #7ba02a

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#4F2AA0
Analogous left#A08A2A
Analogous right#40A02A
Split-complement 1#2A40A0
Split-complement 2#8A2AA0
Triadic 1#2A7BA0
Triadic 2#A02A7B
Tetradic#2AA08A

RGB percentages

Red48.2%
Green62.7%
Blue16.5%

CMYK percentages

Cyan23.1%
Magenta0.0%
Yellow73.8%
Key (black)37.3%

Color previews

#7ba02a text on a black background

contrast 6.90:1

Card sample

#7ba02a text on a white background

contrast 3.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7ba02a;
Background color
Panel with #7ba02a background
background-color: #7ba02a;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7ba02a;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(123, 160, 42, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(123, 160, 42, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7ba02a;
background: linear-gradient(135deg, #7ba02a, #2CA02A);

Monochromatic scale

Palettes built from #7ba02a

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.

#7ba02a 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

Converts to four-color process without much drama. Proof it anyway.

#7ba02a, answered

What color is #7ba02a?

#7ba02a is a dark vivid green, closest to Olive Drab (ΔE2000 6.1). It sits at 79° on the hue wheel with 58% saturation and 40% lightness, which reads as warm.

What is the RGB value of #7ba02a?

rgb(123, 160, 42) — 123 red, 160 green and 42 blue out of 255, or 48.2% / 62.7% / 16.5% by channel.

Is #7ba02a a light or a dark color?

It is a mid-tone. Relative luminance is 0.2952 and perceived brightness is 55%, so black text on it reaches 6.90:1.

Should I use black or white text on #7ba02a?

Black. It scores 6.90:1 against #7ba02a, versus 3.04:1 for white — AA at any size.

What is the complementary color of #7ba02a?

#4F2AA0 sits directly opposite on the wheel. Softer options are the split-complements #2A40A0 and #8A2AA0, which give the same contrast with far less vibration.

What colors go well with #7ba02a?

For interface work: #F8FAF4 as the surface, #DFEDC0 for borders, #829B4B for secondary text, #2E26A4 as an accent and #4E651B for hover and pressed states. For a palette, the analogous pair #A08A2A and #40A02A stays calm, while #4F2AA0 is the loudest partner.

What is #7ba02a in CMYK for printing?

cmyk(23%, 0%, 74%, 37%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #7ba02a warm or cool?

Warm — it scores 41 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A09A2A; nudged cooler, #4FA228.

Work with #7ba02a in the Color Lab