Color #5126cf
A moderately saturated medium blue.
Conversions
#5126cf
rgb(81, 38, 207)
hsl(255.3, 69%, 48%)
hsv(255.3, 81.6%, 81.2%)
cmyk(60.9%, 81.6%, 0%, 18.8%)
lab(33.22, 60.1, -78.82)
lch(33.22, 99.12, 307.33)
oklch(45.2%, 0.2338, 283.51)
hwb(255.3, 14.9%, 18.8%)
Harmony colors
Accessibility
White text reads better on this background (8.31:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#4242b8 · ΔE 7.2
Deuteranopia
#4547b2 · ΔE 8.7
Tritanopia
#4fa29d · ΔE 45.5
Achromatopsia
#4e4e4e · ΔE 30.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5126cf;
bg-[#5126cf]
Related colors
Frequently asked questions
#5126cf (#5126cf) is rgb(81, 38, 207) in RGB.
No, #5126cf 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 #5126cf, or check how it holds up for accessibility.