Skip to content
Vectorlight.net

#a242ff

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

HEX
#a242ff
RGB
162, 66, 255
HSL
270.48°, 100%, 62.94%
OKLCH
0.61 0.26 302.07
Names
—
Lists

Codes

FormatValue
HEX#a242ff
RGBrgb(162 66 255)
HSLhsl(270.48 100% 62.94%)
OKLCHoklch(0.61 0.26 302.07)
CMYKcmyk(36.47% 74.12% 0% 0%)
Android#ffa242ff

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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