<svg viewBox="0 0 0 0" width="0" height="0" aria-hidden="true">
<filter id="duotone-purple">
<feColorMatrix type="matrix" values=".33 .33 .33 0 0
.33 .33 .33 0 0
.33 .33 .33 0 0
0 0 0 1 0">
</feColorMatrix>
<feComponentTransfer color-interpolation-filters="sRGB">
<feFuncR type="table" tableValues="0.878431373 0.788235294"></feFuncR>
<feFuncG type="table" tableValues="0.141176471 0.784313725"></feFuncG>
<feFuncB type="table" tableValues="0.435294118 0.17254902"></feFuncB>
</feComponentTransfer>
</filter>
</svg>
<img src="https://assets.codepen.io/159218/NFC_0312.jpg" alt="" />
img {
width: 100%;
object-fit: cover;
height: auto;
filter: url(#duotone-purple);
}
body {
margin: 0;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
min-height: 100dvh;
background: radial-gradient(rgb(0 0 0 / 0.8) 70%, transparent 30%),
radial-gradient(rgb(20 20 20 / 1) 70%, transparent 15%);
background-size: 4px 4px;
background-position: 0 0, 2px 2px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.