Drain and rinse black beans and black-eyed peas thoroughly. Dice bell peppers, red onion, and tomatoes into small, uniform pieces. If using fresh corn, cut kernels from the cob; if frozen, ensure it's thawed.
In a large bowl, combine the drained beans, corn, bell peppers, red onion, tomatoes, and chopped cilantro.
In a separate small bowl, whisk together olive oil, lime juice, red wine vinegar, sugar, minced garlic, cumin, chili powder, salt, and black pepper until well combined and sugar is dissolved.
Pour the dressing over the vegetable and bean mixture. Toss gently until all ingredients are coated. Cover and refrigerate for at least 30 minutes to allow flavors to meld.
Just before serving, gently fold in the diced avocado. Serve with tortilla chips or as a side dish.