Skip to content
Vectorlight.net

#c340dc

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

HEX
#c340dc
RGB
195, 64, 220
HSL
290.38°, 69.03%, 55.69%
OKLCH
0.62 0.24 320.72
Names
—
Lists

Codes

FormatValue
HEX#c340dc
RGBrgb(195 64 220)
HSLhsl(290.38 69.03% 55.69%)
OKLCHoklch(0.62 0.24 320.72)
CMYKcmyk(11.36% 70.91% 0% 13.73%)
Android#ffc340dc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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