Skip to content
Vectorlight.net

#542fbe

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

HEX
#542fbe
RGB
84, 47, 190
HSL
255.52°, 60.34%, 46.47%
OKLCH
0.45 0.21 286.49
Names
—
Lists

Codes

FormatValue
HEX#542fbe
RGBrgb(84 47 190)
HSLhsl(255.52 60.34% 46.47%)
OKLCHoklch(0.45 0.21 286.49)
CMYKcmyk(55.79% 75.26% 0% 25.49%)
Android#ff542fbe

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #542fbe;
background-color: #542fbe;
bg-[#542fbe]