Skip to content
Vectorlight.net

#a228eb

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

HEX
#a228eb
RGB
162, 40, 235
HSL
277.54°, 82.98%, 53.92%
OKLCH
0.57 0.27 307.77
Names
—
Lists

Codes

FormatValue
HEX#a228eb
RGBrgb(162 40 235)
HSLhsl(277.54 82.98% 53.92%)
OKLCHoklch(0.57 0.27 307.77)
CMYKcmyk(31.06% 82.98% 0% 7.84%)
Android#ffa228eb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

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="#a228eb"
Gradient stop
<stop stop-color="#a228eb"/>
CSS variable + fill
:root { --c: #a228eb; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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