Skip to content
Vectorlight.net

#28176c

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

HEX
#28176c
RGB
40, 23, 108
HSL
252°, 64.89%, 25.69%
OKLCH
0.29 0.14 283.09
Names
—
Lists

Codes

FormatValue
HEX#28176c
RGBrgb(40 23 108)
HSLhsl(252 64.89% 25.69%)
OKLCHoklch(0.29 0.14 283.09)
CMYKcmyk(62.96% 78.7% 0% 57.65%)
Android#ff28176c

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #28176c;
background-color: #28176c;
bg-[#28176c]