Skip to content
Vectorlight.net

#4838eb

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

HEX
#4838eb
RGB
72, 56, 235
HSL
245.36°, 81.74%, 57.06%
OKLCH
0.49 0.25 275.86
Names
—
Lists

Codes

FormatValue
HEX#4838eb
RGBrgb(72 56 235)
HSLhsl(245.36 81.74% 57.06%)
OKLCHoklch(0.49 0.25 275.86)
CMYKcmyk(69.36% 76.17% 0% 7.84%)
Android#ff4838eb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #4838eb;
background-color: #4838eb;
bg-[#4838eb]