Color #5f45ab
A moderately saturated medium blue.
Conversions
#5f45ab
rgb(95, 69, 171)
hsl(255.3, 42.5%, 47.1%)
hsv(255.3, 59.6%, 67.1%)
cmyk(44.4%, 59.6%, 0%, 32.9%)
lab(37.17, 36.11, -51.13)
lch(37.17, 62.6, 305.23)
oklch(47.3%, 0.1561, 290.98)
hwb(255.3, 27.1%, 32.9%)
Harmony colors
Accessibility
White text reads better on this background (7.18:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#55559a · ΔE 7
Deuteranopia
#565896 · ΔE 8.4
Tritanopia
#5e8b87 · ΔE 33.7
Achromatopsia
#575757 · ΔE 26.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5f45ab;
bg-[#5f45ab]
Related colors
Frequently asked questions
#5f45ab (#5f45ab) is rgb(95, 69, 171) in RGB.
No, #5f45ab is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Build something with this color
Generate a full palette from #5f45ab, or check how it holds up for accessibility.