Skip to content
Vectorlight.net

#d940ed

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

HEX
#d940ed
RGB
217, 64, 237
HSL
293.06°, 82.78%, 59.02%
OKLCH
0.66 0.26 322.8
Names
—
Lists

Codes

FormatValue
HEX#d940ed
RGBrgb(217 64 237)
HSLhsl(293.06 82.78% 59.02%)
OKLCHoklch(0.66 0.26 322.8)
CMYKcmyk(8.44% 73% 0% 7.06%)
Android#ffd940ed

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
3.55:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.90: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="#d940ed"
Gradient stop
<stop stop-color="#d940ed"/>
CSS variable + fill
:root { --c: #d940ed; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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