Skip to content
Vectorlight.net

#5161fb

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

HEX
#5161fb
RGB
81, 97, 251
HSL
234.35°, 95.51%, 65.1%
OKLCH
0.57 0.23 272.42
Names
—
Lists

Codes

FormatValue
HEX#5161fb
RGBrgb(81 97 251)
HSLhsl(234.35 95.51% 65.1%)
OKLCHoklch(0.57 0.23 272.42)
CMYKcmyk(67.73% 61.35% 0% 1.57%)
Android#ff5161fb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #5161fb;
background-color: #5161fb;
bg-[#5161fb]