Skip to content
Vectorlight.net

#b27afd

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

HEX
#b27afd
RGB
178, 122, 253
HSL
265.65°, 97.04%, 73.53%
OKLCH
0.69 0.19 301.35
Names
—
Lists

Codes

FormatValue
HEX#b27afd
RGBrgb(178 122 253)
HSLhsl(265.65 97.04% 73.53%)
OKLCHoklch(0.69 0.19 301.35)
CMYKcmyk(29.64% 51.78% 0% 0.78%)
Android#ffb27afd

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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