Skip to content
Vectorlight.net

#c340fc

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

HEX
#c340fc
RGB
195, 64, 252
HSL
281.81°, 96.91%, 61.96%
OKLCH
0.64 0.27 313.07
Names
—
Lists

Codes

FormatValue
HEX#c340fc
RGBrgb(195 64 252)
HSLhsl(281.81 96.91% 61.96%)
OKLCHoklch(0.64 0.27 313.07)
CMYKcmyk(22.62% 74.6% 0% 1.18%)
Android#ffc340fc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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