{{ $name := .name }}
{{ $taxonomy := .taxonomy }}

{{ $hash := md5 $name }}
{{ $r := printf "0x%s" (substr $hash 0 2) | int }}
{{ $g := printf "0x%s" (substr $hash 2 2) | int }}
{{ $b := printf "0x%s" (substr $hash 4 2) | int }}
{{ $rgba := printf "rgba(%d,%d,%d,0.2)" $r $g $b }}
<a 
    class="term-link"
    id="{{ $taxonomy | urlize }}_{{ $name | urlize }}" 
    style="background:rgba({{ $r }},{{ $g }},{{ $b }},0.4)" 
    href="{{ "/" | relLangURL}}{{ $taxonomy | urlize }}{{ "/" | relLangURL}}{{ $name | urlize }}">
    {{ $name }}
</a>
