Skip to content
Vectorlight.net

#28028a

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

HEX
#28028a
RGB
40, 2, 138
HSL
256.76°, 97.14%, 27.45%
OKLCH
0.31 0.19 278.78
Names
—
Lists

Codes

FormatValue
HEX#28028a
RGBrgb(40 2 138)
HSLhsl(256.76 97.14% 27.45%)
OKLCHoklch(0.31 0.19 278.78)
CMYKcmyk(71.01% 98.55% 0% 45.88%)
Android#ff28028a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #28028a;
background-color: #28028a;
bg-[#28028a]