<style type="text/css">
.ava{
display: inline-block;
background-color: <?=$color[$name]?>;
color: white;
width: 26px;
height: 26px;
border-radius: 50%;
font-size: 13px;
font-family: sans-serif;
vertical-align: baseline;
text-align: center;
}
.ava:after{
display: inline-block;
vertical-align: middle;
content: '';
height: 113%;
}
</style>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="ava">
<p>К</p>
</div>
</body>
<style>
.ava{
width: 30px;
height: 30px;
background-color: rgb(115, 82, 147);
border-radius: 50%;
display: flex;
justify-content: center;
color:white;
align-items: center;
}
</style>
</html>