Color #5f5fa7
A muted medium blue.
Conversions
#5f5fa7
rgb(95, 95, 167)
hsl(240, 29%, 51.4%)
hsv(240, 43.1%, 65.5%)
cmyk(43.1%, 43.1%, 0%, 34.5%)
lab(43.37, 18.93, -38.83)
lch(43.37, 43.2, 295.99)
oklch(51.9%, 0.112, 281.8)
hwb(240, 37.3%, 34.5%)
Harmony colors
Accessibility
White text reads better on this background (5.7:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#5f5f99 · ΔE 2.8
Deuteranopia
#5f5f96 · ΔE 3.5
Tritanopia
#5f8e8b · ΔE 29.2
Achromatopsia
#666666 · ΔE 22.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5f5fa7;
bg-[#5f5fa7]
Related colors
Frequently asked questions
#5f5fa7 (#5f5fa7) is rgb(95, 95, 167) in RGB.
No, #5f5fa7 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 #5f5fa7, or check how it holds up for accessibility.