Skip to content

#7ba821

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

RGB
123, 168, 33
HSL
80°, 67%, 39%
CMYK
27, 0, 80, 34
Luminance
0.3233

At a glance

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

Hex
#7ba821
Hue
80°
green
Saturation
67%
vivid
Lightness
39%
dark
Brightness
66%
HSV value
Perceived
57%
weighted brightness
Luminance
0.3233
WCAG relative
Temperature
Warm
42/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
7.47:1
Closest name
Olive Drab
ΔE2000 8.5
Where it sits
Hue80° of 360°
Saturation67%
Lightness39%
Temperature
Warm ← → Cool42% 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#7ba821
RGBrgb(123, 168, 33)
HSLhsl(80, 67%, 39%)
CMYKcmyk(27%, 0%, 80%, 34%)
LABlab(63.6 -34.1 59.1)
LCHlch(63.6 68.2 120.0)
OKLCHoklch(0.675 0.163 127.2)
Decimal8103969
Display P3color(display-p3 0.482 0.659 0.129)

Copy-ready code

/* CSS */
color: #7ba821;
background-color: #7ba821;
/* Tailwind (arbitrary) */
class="text-[#7ba821] bg-[#7ba821]"
/* SCSS */
$brand: #7ba821;
/* SwiftUI */
Color(red: 0.482, green: 0.659, blue: 0.129)
/* Android */
Color.parseColor("#7ba821")
/* Flutter */
Color(0xFF7BA821)
/* Python / OpenCV (BGR) */
(33, 168, 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 #7ba821 · 7.47:1
Use #000000AAA at every size.
Aa
White text · 2.81:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.47:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #7ba821 as text scores 2.81:1 on white and 7.47:1 on black.

Accessibility — WCAG contrast

Aa
#7ba821 on white: 2.81:1
AA ✗ fail · AA-large · AAA
Aa
#7ba821 on black: 7.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B19C00
deuteranopia · #AB9930
tritanopia · #80A08F

Color scale — 50 to 950

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

#F9FBF3
#F2F8E8
#E4F1CA
#D3EDA1
#BEE372
#A8DA43
#96CD28
#7ba821
#64881B
#4A6317
#2E3E0F
Base = 700Lightest = 50 · #F9FBF3Darkest = 950 · #2E3E0F
:root {
  --brand-50: #F9FBF3;
  --brand-100: #F2F8E8;
  --brand-200: #E4F1CA;
  --brand-300: #D3EDA1;
  --brand-400: #BEE372;
  --brand-500: #A8DA43;
  --brand-600: #96CD28;
  --brand-700: #7ba821;
  --brand-800: #64881B;
  --brand-900: #4A6317;
  --brand-950: #2E3E0F;
  --brand: #7ba821;
  --brand-ink: #000000;
}

Colors that work with #7ba821

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#DEEDC0
Hairlines and dividers
Muted text#809B4B
Captions on the surface
Accent#291DAC
Second voice, not a rival
Dark variant#4E6B15
Hover, pressed, headers
Light variant#F5FBEA
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 #7ba821

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

Works well for
  • 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
  • Text of any size on white — fails WCAG AA
  • 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#4E21A8
Analogous left#A89121
Analogous right#37A821
Split-complement 1#2137A8
Split-complement 2#9121A8
Triadic 1#217BA8
Triadic 2#A8217B
Tetradic#21A891

RGB percentages

Red48.2%
Green65.9%
Blue12.9%

CMYK percentages

Cyan26.8%
Magenta0.0%
Yellow80.4%
Key (black)34.1%

Color previews

#7ba821 text on a black background

contrast 7.47:1

Card sample

#7ba821 text on a white background

contrast 2.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(123, 168, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(123, 168, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7ba821;
background: linear-gradient(135deg, #7ba821, #21A821);

Monochromatic scale

Palettes built from #7ba821

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.

#7ba821 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.

#7ba821, answered

What color is #7ba821?

#7ba821 is a dark vivid green, closest to Olive Drab (ΔE2000 8.5). It sits at 80° on the hue wheel with 67% saturation and 39% lightness, which reads as warm.

What is the RGB value of #7ba821?

rgb(123, 168, 33) — 123 red, 168 green and 33 blue out of 255, or 48.2% / 65.9% / 12.9% by channel.

Is #7ba821 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3233 and perceived brightness is 57%, so black text on it reaches 7.47:1.

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

Black. It scores 7.47:1 against #7ba821, versus 2.81:1 for white — AAA at any size.

What is the complementary color of #7ba821?

#4E21A8 sits directly opposite on the wheel. Softer options are the split-complements #2137A8 and #9121A8, which give the same contrast with far less vibration.

What colors go well with #7ba821?

For interface work: #F8FAF4 as the surface, #DEEDC0 for borders, #809B4B for secondary text, #291DAC as an accent and #4E6B15 for hover and pressed states. For a palette, the analogous pair #A89121 and #37A821 stays calm, while #4E21A8 is the loudest partner.

What is #7ba821 in CMYK for printing?

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

Is #7ba821 warm or cool?

Warm — it scores 42 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A8A321; nudged cooler, #49AA1F.

Work with #7ba821 in the Color Lab