Skip to content

#afd94c

a balanced, vivid green · warm · closest name: Yellow Green

RGB
175, 217, 76
HSL
78°, 65%, 58%
CMYK
19, 0, 65, 15
Luminance
0.5926

At a glance

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

Hex
#afd94c
Hue
78°
green
Saturation
65%
vivid
Lightness
58%
balanced
Brightness
85%
HSV value
Perceived
76%
weighted brightness
Luminance
0.5926
WCAG relative
Temperature
Warm
40/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
12.85:1
Closest name
Yellow Green
ΔE2000 3.7
Where it sits
Hue78° of 360°
Saturation65%
Lightness58%
Temperature
Warm ← → Cool40% 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#afd94c
RGBrgb(175, 217, 76)
HSLhsl(78, 65%, 58%)
CMYKcmyk(19%, 0%, 65%, 15%)
LABlab(81.4 -33.8 62.5)
LCHlch(81.4 71.1 118.4)
OKLCHoklch(0.828 0.172 124.3)
Decimal11524428
Display P3color(display-p3 0.686 0.851 0.298)

Copy-ready code

/* CSS */
color: #afd94c;
background-color: #afd94c;
/* Tailwind (arbitrary) */
class="text-[#afd94c] bg-[#afd94c]"
/* SCSS */
$brand: #afd94c;
/* SwiftUI */
Color(red: 0.686, green: 0.851, blue: 0.298)
/* Android */
Color.parseColor("#afd94c")
/* Flutter */
Color(0xFFAFD94C)
/* Python / OpenCV (BGR) */
(76, 217, 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 #afd94c · 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: #afd94c as text scores 1.63:1 on white and 12.85:1 on black.

Accessibility — WCAG contrast

Aa
#afd94c on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#afd94c on black: 12.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E5CC39
deuteranopia · #DFCA57
tritanopia · #B7CFBC

Color scale — 50 to 950

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

#F9FBF3
#F3F7E8
#E5F1CB
#D6EBA2
#C1E274
#afd94c
#9ACA2B
#81A824
#67871D
#4C6219
#2F3D0F
Base = 500Lightest = 50 · #F9FBF3Darkest = 950 · #2F3D0F
:root {
  --brand-50: #F9FBF3;
  --brand-100: #F3F7E8;
  --brand-200: #E5F1CB;
  --brand-300: #D6EBA2;
  --brand-400: #C1E274;
  --brand-500: #afd94c;
  --brand-600: #9ACA2B;
  --brand-700: #81A824;
  --brand-800: #67871D;
  --brand-900: #4C6219;
  --brand-950: #2F3D0F;
  --brand: #afd94c;
  --brand-ink: #000000;
}

Colors that work with #afd94c

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#839B4B
Captions on the surface
Accent#4F48DD
Second voice, not a rival
Dark variant#506916
Hover, pressed, headers
Light variant#F6FBEA
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 #afd94c

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
  • 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
  • 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#764CD9
Analogous left#D9BD4C
Analogous right#69D94C
Split-complement 1#4C69D9
Split-complement 2#BD4CD9
Triadic 1#4CAFD9
Triadic 2#D94CAF
Tetradic#4CD9BD

RGB percentages

Red68.6%
Green85.1%
Blue29.8%

CMYK percentages

Cyan19.4%
Magenta0.0%
Yellow65.0%
Key (black)14.9%

Color previews

#afd94c text on a black background

contrast 12.85:1

Card sample

#afd94c text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 217, 76, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 217, 76, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd94c;
background: linear-gradient(135deg, #afd94c, #51D94C);

Monochromatic scale

Palettes built from #afd94c

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.

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

#afd94c, answered

What color is #afd94c?

#afd94c is a balanced vivid green, closest to Yellow Green (ΔE2000 3.7). It sits at 78° on the hue wheel with 65% saturation and 58% lightness, which reads as warm.

What is the RGB value of #afd94c?

rgb(175, 217, 76) — 175 red, 217 green and 76 blue out of 255, or 68.6% / 85.1% / 29.8% by channel.

Is #afd94c a light or a dark color?

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

Should I use black or white text on #afd94c?

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

What is the complementary color of #afd94c?

#764CD9 sits directly opposite on the wheel. Softer options are the split-complements #4C69D9 and #BD4CD9, which give the same contrast with far less vibration.

What colors go well with #afd94c?

For interface work: #F9FAF4 as the surface, #DFEDC0 for borders, #839B4B for secondary text, #4F48DD as an accent and #506916 for hover and pressed states. For a palette, the analogous pair #D9BD4C and #69D94C stays calm, while #764CD9 is the loudest partner.

What is #afd94c in CMYK for printing?

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

Is #afd94c warm or cool?

Warm — it scores 40 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D9CF4C; nudged cooler, #7BDB4A.

Work with #afd94c in the Color Lab