Skip to content

#afd77f

a light, vivid green · neutral · closest name: Light Green

RGB
175, 215, 127
HSL
87°, 52%, 67%
CMYK
19, 0, 41, 16
Luminance
0.5925

At a glance

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

Hex
#afd77f
Hue
87°
green
Saturation
52%
vivid
Lightness
67%
light
Brightness
84%
HSV value
Perceived
77%
weighted brightness
Luminance
0.5925
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
12.85:1
Closest name
Light Green
ΔE2000 8.6
Where it sits
Hue87° of 360°
Saturation52%
Lightness67%
Temperature
Warm ← → Cool48% 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#afd77f
RGBrgb(175, 215, 127)
HSLhsl(87, 52%, 67%)
CMYKcmyk(19%, 0%, 41%, 16%)
LABlab(81.4 -27.9 39.1)
LCHlch(81.4 48.1 125.5)
OKLCHoklch(0.830 0.123 128.7)
Decimal11523967
Display P3color(display-p3 0.686 0.843 0.498)

Copy-ready code

/* CSS */
color: #afd77f;
background-color: #afd77f;
/* Tailwind (arbitrary) */
class="text-[#afd77f] bg-[#afd77f]"
/* SCSS */
$brand: #afd77f;
/* SwiftUI */
Color(red: 0.686, green: 0.843, blue: 0.498)
/* Android */
Color.parseColor("#afd77f")
/* Flutter */
Color(0xFFAFD77F)
/* Python / OpenCV (BGR) */
(127, 215, 175)

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

Accessibility — WCAG contrast

Aa
#afd77f on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#afd77f on black: 12.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DFCC78
deuteranopia · #D9C984
tritanopia · #B3D0C1

Color scale — 50 to 950

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

#F8FAF4
#F0F6E9
#DFEDCF
#CAE4AA
#afd77f
#94CA54
#80BB3A
#6B9B31
#557C27
#405B20
#283914
Base = 400Lightest = 50 · #F8FAF4Darkest = 950 · #283914
:root {
  --brand-50: #F8FAF4;
  --brand-100: #F0F6E9;
  --brand-200: #DFEDCF;
  --brand-300: #CAE4AA;
  --brand-400: #afd77f;
  --brand-500: #94CA54;
  --brand-600: #80BB3A;
  --brand-700: #6B9B31;
  --brand-800: #557C27;
  --brand-900: #405B20;
  --brand-950: #283914;
  --brand: #afd77f;
  --brand-ink: #000000;
}

Colors that work with #afd77f

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#D8ECC1
Hairlines and dividers
Muted text#769B4B
Captions on the surface
Accent#8F7CDA
Second voice, not a rival
Dark variant#43611E
Hover, pressed, headers
Light variant#F3F9EC
Selected rows, tints
Dark surface#1D2414
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 #afd77f

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
  • Card and section backgrounds
  • 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
  • White 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#A77FD7
Analogous left#D7D37F
Analogous right#83D77F
Split-complement 1#7F83D7
Split-complement 2#D37FD7
Triadic 1#7FAFD7
Triadic 2#D77FAF
Tetradic#7FD7D3

RGB percentages

Red68.6%
Green84.3%
Blue49.8%

CMYK percentages

Cyan18.6%
Magenta0.0%
Yellow40.9%
Key (black)15.7%

Color previews

#afd77f text on a black background

contrast 12.85:1

Card sample

#afd77f text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 215, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 215, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd77f;
background: linear-gradient(135deg, #afd77f, #7FD78A);

Monochromatic scale

Palettes built from #afd77f

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.

#afd77f 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#afd77f, answered

What color is #afd77f?

#afd77f is a light vivid green, closest to Light Green (ΔE2000 8.6). It sits at 87° on the hue wheel with 52% saturation and 67% lightness, which reads as neutral.

What is the RGB value of #afd77f?

rgb(175, 215, 127) — 175 red, 215 green and 127 blue out of 255, or 68.6% / 84.3% / 49.8% by channel.

Is #afd77f a light or a dark color?

It is a light color. Relative luminance is 0.5925 and perceived brightness is 77%, so black text on it reaches 12.85:1.

Should I use black or white text on #afd77f?

Black. It scores 12.85:1 against #afd77f, versus 1.63:1 for white — AAA at any size.

What is the complementary color of #afd77f?

#A77FD7 sits directly opposite on the wheel. Softer options are the split-complements #7F83D7 and #D37FD7, which give the same contrast with far less vibration.

What colors go well with #afd77f?

For interface work: #F8FAF4 as the surface, #D8ECC1 for borders, #769B4B for secondary text, #8F7CDA as an accent and #43611E for hover and pressed states. For a palette, the analogous pair #D7D37F and #83D77F stays calm, while #A77FD7 is the loudest partner.

What is #afd77f in CMYK for printing?

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

Is #afd77f warm or cool?

Neutral — it scores 48 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CFD77F; nudged cooler, #8ED97D.

Work with #afd77f in the Color Lab