I have this CSS for a circle with one border color:
Try this with css Pseudo-elements three different border colors(same length)
* {
box-sizing: border-box
}
body {
margin: 0;
padding-top: 20px;
background: skyblue;
transition: background 0.6s ease
}
body:hover {
background: #CBE0E8
}
div {
box-shadow: inset 0 0 3px 0px #484848, 0 0 6px 0px #484848;
width: 150px;
height: 150px;
margin: 0 auto;
border-radius: 50%;
border-top: 10px solid green;
border-right: 10px solid red;
border-bottom: 10px solid red;
border-left: 10px solid green;
transform: rotate(15deg);
position: relative
}
div:before, div:after {
content: "";
position: absolute;
left: -10px;
top: -10px;
width: 100%;
height: 100%;
border-radius: 50%;
}
div:before {
border-top: 10px solid yellow;
border-right: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid transparent;
transform: rotate(60deg)
}
div:after {
border-top: 10px solid yellow;
border-right: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid transparent;
transform: rotate(30deg)
}