Skip to content
Vectorlight.net

#28126a

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

HEX
#28126a
RGB
40, 18, 106
HSL
255°, 70.97%, 24.31%
OKLCH
0.28 0.14 284.62
Names
—
Lists

Codes

FormatValue
HEX#28126a
RGBrgb(40 18 106)
HSLhsl(255 70.97% 24.31%)
OKLCHoklch(0.28 0.14 284.62)
CMYKcmyk(62.26% 83.02% 0% 58.43%)
Android#ff28126a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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