Color #5165ab
A muted medium blue.
Conversions
#5165ab
rgb(81, 101, 171)
hsl(226.7, 35.7%, 49.4%)
hsv(226.7, 52.6%, 67.1%)
cmyk(52.6%, 40.9%, 0%, 32.9%)
lab(44.23, 12.95, -39.89)
lch(44.23, 41.94, 287.99)
oklch(52.4%, 0.113, 270.1)
hwb(226.7, 31.8%, 32.9%)
Harmony colors
Accessibility
White text reads better on this background (5.53:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#5a5b9e · ΔE 5.4
Deuteranopia
#59589a · ΔE 6.4
Tritanopia
#52928f · ΔE 29.1
Achromatopsia
#696969 · ΔE 21.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5165ab;
bg-[#5165ab]
Related colors
Frequently asked questions
#5165ab (#5165ab) is rgb(81, 101, 171) in RGB.
No, #5165ab 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 #5165ab, or check how it holds up for accessibility.