Skip to content
Vectorlight.net

#a240da

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

HEX
#a240da
RGB
162, 64, 218
HSL
278.18°, 67.54%, 55.29%
OKLCH
0.58 0.23 310.21
Names
—
Lists

Codes

FormatValue
HEX#a240da
RGBrgb(162 64 218)
HSLhsl(278.18 67.54% 55.29%)
OKLCHoklch(0.58 0.23 310.21)
CMYKcmyk(25.69% 70.64% 0% 14.51%)
Android#ffa240da

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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