Skip to content

#79af02

a dark, electric green · warm · closest name: Yellow Green

RGB
121, 175, 2
HSL
79°, 98%, 35%
CMYK
31, 0, 99, 31
Luminance
0.3473

At a glance

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

Hex
#79af02
Hue
79°
green
Saturation
98%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
59%
weighted brightness
Luminance
0.3473
WCAG relative
Temperature
Warm
41/100 cool
Color family
Green
Tone
Electric
Best ink
Black
7.95:1
Closest name
Yellow Green
ΔE2000 8.4
Where it sits
Hue79° of 360°
Saturation98%
Lightness35%
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#79af02
RGBrgb(121, 175, 2)
HSLhsl(79, 98%, 35%)
CMYKcmyk(31%, 0%, 99%, 31%)
LABlab(65.5 -38.9 66.5)
LCHlch(65.5 77.0 120.3)
OKLCHoklch(0.690 0.181 128.4)
Decimal7974658
Display P3color(display-p3 0.475 0.686 0.008)

Copy-ready code

/* CSS */
color: #79af02;
background-color: #79af02;
/* Tailwind (arbitrary) */
class="text-[#79af02] bg-[#79af02]"
/* SCSS */
$brand: #79af02;
/* SwiftUI */
Color(red: 0.475, green: 0.686, blue: 0.008)
/* Android */
Color.parseColor("#79af02")
/* Flutter */
Color(0xFF79AF02)
/* Python / OpenCV (BGR) */
(2, 175, 121)

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 #79af02 · 7.95:1
Use #000000AAA at every size.
Aa
White text · 2.64:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.95:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #79af02 as text scores 2.64:1 on white and 7.95:1 on black.

Accessibility — WCAG contrast

Aa
#79af02 on white: 2.64:1
AA ✗ fail · AA-large · AAA
Aa
#79af02 on black: 7.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B8A200
deuteranopia · #B19E23
tritanopia · #7EA794

Color scale — 50 to 950

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

#FAFDF1
#F4FCE4
#E9FBC1
#DCFE90
#CAFD59
#B8FC21
#A7F203
#8CCA02
#79af02
#527406
#334904
Base = 800Lightest = 50 · #FAFDF1Darkest = 950 · #334904
:root {
  --brand-50: #FAFDF1;
  --brand-100: #F4FCE4;
  --brand-200: #E9FBC1;
  --brand-300: #DCFE90;
  --brand-400: #CAFD59;
  --brand-500: #B8FC21;
  --brand-600: #A7F203;
  --brand-700: #8CCA02;
  --brand-800: #79af02;
  --brand-900: #527406;
  --brand-950: #334904;
  --brand: #79af02;
  --brand-ink: #000000;
}

Colors that work with #79af02

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#F9FAF4
Tinted page background
Border#DFEDC0
Hairlines and dividers
Muted text#829B4B
Captions on the surface
Accent#0B00B1
Second voice, not a rival
Dark variant#577E01
Hover, pressed, headers
Light variant#F7FFE6
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 #79af02

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#3802AF
Analogous left#AF8E02
Analogous right#23AF02
Split-complement 1#0223AF
Split-complement 2#8E02AF
Triadic 1#0279AF
Triadic 2#AF0279
Tetradic#02AF8E

RGB percentages

Red47.5%
Green68.6%
Blue0.8%

CMYK percentages

Cyan30.9%
Magenta0.0%
Yellow98.9%
Key (black)31.4%

Color previews

#79af02 text on a black background

contrast 7.95:1

Card sample

#79af02 text on a white background

contrast 2.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #79af02;
Background color
Panel with #79af02 background
background-color: #79af02;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #79af02;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(121, 175, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 175, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #79af02;
background: linear-gradient(135deg, #79af02, #06AF02);

Monochromatic scale

Palettes built from #79af02

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.

#79af02 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.

#79af02, answered

What color is #79af02?

#79af02 is a dark electric green, closest to Yellow Green (ΔE2000 8.4). It sits at 79° on the hue wheel with 98% saturation and 35% lightness, which reads as warm.

What is the RGB value of #79af02?

rgb(121, 175, 2) — 121 red, 175 green and 2 blue out of 255, or 47.5% / 68.6% / 0.8% by channel.

Is #79af02 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3473 and perceived brightness is 59%, so black text on it reaches 7.95:1.

Should I use black or white text on #79af02?

Black. It scores 7.95:1 against #79af02, versus 2.64:1 for white — AAA at any size.

What is the complementary color of #79af02?

#3802AF sits directly opposite on the wheel. Softer options are the split-complements #0223AF and #8E02AF, which give the same contrast with far less vibration.

What colors go well with #79af02?

For interface work: #F9FAF4 as the surface, #DFEDC0 for borders, #829B4B for secondary text, #0B00B1 as an accent and #577E01 for hover and pressed states. For a palette, the analogous pair #AF8E02 and #23AF02 stays calm, while #3802AF is the loudest partner.

What is #79af02 in CMYK for printing?

cmyk(31%, 0%, 99%, 31%). 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 #79af02 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 #AFA502; nudged cooler, #39B100.

Work with #79af02 in the Color Lab