Skip to content
Vectorlight.net

#d540e4

Codes, contrast, shades, harmonies and SVG snippets for this color.

HEX
#d540e4
RGB
213, 64, 228
HSL
294.51°, 75.23%, 57.25%
OKLCH
0.65 0.26 323.94
Names
—
Lists

Codes

FormatValue
HEX#d540e4
RGBrgb(213 64 228)
HSLhsl(294.51 75.23% 57.25%)
OKLCHoklch(0.65 0.26 323.94)
CMYKcmyk(6.58% 71.93% 0% 10.59%)
Android#ffd540e4

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
3.69:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.68:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

Open in contrast checker

Shades & tints

OKLCH lightness, mixed toward white then black.

Open in shades & tints

Harmonies

Complementary

Analogous

Triadic

Open in palette generator

Color-blindness

Normal
Protanopia
Deuteranopia
Tritanopia

Open simulator

SVG snippets

fill
fill="#d540e4"
Gradient stop
<stop stop-color="#d540e4"/>
CSS variable + fill
:root { --c: #d540e4; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #d540e4;
background-color: #d540e4;
bg-[#d540e4]