#afdf5a
a balanced, vivid green · neutral · closest name: Yellow Green
At a glance
Every number on this page in one read: what #afdf5a is made of, how bright it looks, and which way it leans.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #afdf5a |
| RGB | rgb(175, 223, 90) |
| HSL | hsl(82, 68%, 61%) |
| CMYK | cmyk(22%, 0%, 60%, 13%) |
| LAB | lab(83.3 -35.5 58.7) |
| LCH | lch(83.3 68.6 121.1) |
| OKLCH | oklch(0.843 0.169 126.5) |
| Decimal | 11525978 |
| Display P3 | color(display-p3 0.686 0.875 0.353) |
Copy-ready code
/* CSS */
color: #afdf5a;
background-color: #afdf5a;
/* Tailwind (arbitrary) */
class="text-[#afdf5a] bg-[#afdf5a]"
/* SCSS */
$brand: #afdf5a;
/* SwiftUI */
Color(red: 0.686, green: 0.875, blue: 0.353)
/* Android */
Color.parseColor("#afdf5a")
/* Flutter */
Color(0xFFAFDF5A)
/* Python / OpenCV (BGR) */
(90, 223, 175)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #afdf5a 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.
:root {
--brand-50: #F8FBF3;
--brand-100: #F2F8E8;
--brand-200: #E3F2CA;
--brand-300: #D1EDA1;
--brand-400: #BBE472;
--brand-500: #afdf5a;
--brand-600: #91CD28;
--brand-700: #79AB21;
--brand-800: #61891B;
--brand-900: #486317;
--brand-950: #2D3E0E;
--brand: #afdf5a;
--brand-ink: #000000;
}Colors that work with #afdf5a
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #afdf5a
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠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 | #8A5ADF | Directly opposite — maximum tension | |
| Analogous left | #DFCD5A | Neighbour, quieter | |
| Analogous right | #6DDF5A | Neighbour, quieter | |
| Split-complement 1 | #5A6DDF | Contrast without the clash | |
| Split-complement 2 | #CD5ADF | Contrast without the clash | |
| Triadic 1 | #5AAFDF | Even thirds — balanced and loud | |
| Triadic 2 | #DF5AAF | Even thirds — balanced and loud | |
| Tetradic | #5ADFCD | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#afdf5a text on a black background
contrast 13.53:1
#afdf5a text on a white background
contrast 1.55:1
CSS3 live lab
The quick brown fox
color: #afdf5a;
background-color: #afdf5a;
Glowing headline
text-shadow: 2px 2px 8px #afdf5a;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 223, 90, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 223, 90, 0.45);
border: 3px solid #afdf5a; background: linear-gradient(135deg, #afdf5a, #5ADF5E);
Monochromatic scale
Palettes built from #afdf5a
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.
Closest color with a full write-up: Spring Bud (#a7fc00) — ΔE2000 8.5 away, with its history, psychology and brand usage.
#afdf5a in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#afdf5a, answered
What color is #afdf5a?
#afdf5a is a balanced vivid green, closest to Yellow Green (ΔE2000 5.1). It sits at 82° on the hue wheel with 68% saturation and 61% lightness, which reads as neutral.
What is the RGB value of #afdf5a?
rgb(175, 223, 90) — 175 red, 223 green and 90 blue out of 255, or 68.6% / 87.5% / 35.3% by channel.
Is #afdf5a a light or a dark color?
It is a light color. Relative luminance is 0.6263 and perceived brightness is 78%, so black text on it reaches 13.53:1.
Should I use black or white text on #afdf5a?
Black. It scores 13.53:1 against #afdf5a, versus 1.55:1 for white — AAA at any size.
What is the complementary color of #afdf5a?
#8A5ADF sits directly opposite on the wheel. Softer options are the split-complements #5A6DDF and #CD5ADF, which give the same contrast with far less vibration.
What colors go well with #afdf5a?
For interface work: #F8FAF4 as the surface, #DCEDC0 for borders, #7E9B4B for secondary text, #6656E3 as an accent and #4C6B15 for hover and pressed states. For a palette, the analogous pair #DFCD5A and #6DDF5A stays calm, while #8A5ADF is the loudest partner.
What is #afdf5a in CMYK for printing?
cmyk(22%, 0%, 60%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #afdf5a warm or cool?
Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DFDE5A; nudged cooler, #7DE158.