Preview:
<? $event_cats_args = array(
            'orderby' => 'name',
            'order' => 'ASC',
            'fields' => 'all'
        ); 
$event_cats = wp_get_object_terms( $event_id, array( 'tribe_events_cat' ), $event_cats_args );
if ( empty( $event_cats ) ) {
  return;
}
if ( is_wp_error( $event_cats ) || ! is_array( $event_cats ) ) {
  return;
} ?>
  
<div class="event-categories">
    <? foreach( $event_cats as $cat ) { 
    	$catid = $cat->term_id;
    	$catname = $cat->name;
    	$catslug = $cat->slug;
    	$catcolor = get_field('category_color', 'tribe_events_cat_' . $catid);
    ?>
      
      <a href="/events/category/<?= $catslug; ?>" rel="tag" style="background-color: <?= $catcolor; ?>;"><?= esc_html( $catname ); ?></a>

    <? } ?>
</div>
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter