Home /Colors /#5157F5
#5157F5#5157F5

#5157F5 color code is #5157F5. Use this page to get all code formats, explore shades and tints, and find colors that work with #5157f5.

ShadesTints
Preview
Text on White
White on Color
ShareSave to PinterestTweet

Explore #5157F5

#5157F5 Accessibility & WCAG Contrast

Relative luminance of #5157F5 is 0.1516. Its WCAG contrast ratio is 5.21:1 against white and 4.03:1 against black. Use the card with the higher ratio for body text.

The quick brown fox
#5157F5 on white5.21:1AA
The quick brown fox
#5157F5 on black4.03:1AA Large
The quick brown fox
White on #5157F55.21:1AA
The quick brown fox
Black on #5157F54.03:1AA Large

#5157F5 — Frequently Asked Questions

What is the hex code for #5157F5?+
The hex code for #5157F5 is #5157F5. In RGB it's rgb(81, 87, 245), and in HSL it's hsl(238, 89%, 64%).
What is the RGB value of #5157F5?+
#5157F5 in RGB is (81, 87, 245). Written in CSS: rgb(81, 87, 245).
What is the CMYK value of #5157F5?+
#5157F5 converts to CMYK(67%, 64%, 0%, 4%) for print. Hex equivalent is #5157F5.
Is #5157f5 a warm or cool color?+
#5157F5 (#5157F5) is a cool blue — its hue sits at 238° on the color wheel, placing it in the cool part of the spectrum.
What color family does #5157f5 belong to?+
#5157F5 belongs to the blue family. Its HSL is 238°, 89%, 64% — a cool tone within the broader blue group.
Is #5157f5 accessible for body text on a white background?+
#5157F5 on white reaches a WCAG contrast ratio of 5.21:1 — passes WCAG AA for body text on white.
What is the closest Pantone match for #5157f5?+
The nearest Pantone match for #5157F5 (#5157F5) is 7442 C Vivid Violet Blue, calculated by Euclidean RGB distance over the Pantone Matching System.

How to use #5157F5 in design

Practical guidance for using #5157f5 (#5157F5) across four design contexts, derived from its hue, lightness, saturation, and WCAG contrast.

Web & UI design

Use #5157F5 (#5157F5) as primary text or icon color on white backgrounds — at 5.2:1 contrast it passes WCAG AA for body copy. Avoid placing #5157f5 text on dark surfaces; the contrast drops below the AA threshold.

Branding & identity

As a brand color, #5157F5 (#5157F5) reads as high-energy and confident and versatile across product tiers. It fits naturally into tech, finance, healthcare, productivity tools (the safe brand-color default). Use it as the primary identity color and pair with one neutral (white, off-white, or near-black). Test legibility on both your logo and small UI text before locking it in — saturation that works on a 200px logo can feel overpowering at favicon scale.

Fashion & apparel

#5157F5 flatters cool-leaning skin tones (pink, rosy, blue undertones) and works best in autumn/winter collections. Pair it with cool neutrals (charcoal, slate, off-white, black) and it works as a sophisticated alternative to navy. Deep cool tones photograph richly under indoor light and read as quiet luxury — strong choice for eveningwear.

Interior design

#5157F5 works as either a primary wall color or a strong accent — versatile across most rooms. As a wall color it pairs with white trim and warm wood; as an accent (sofa, chair, large art) it lifts a neutral room without overwhelming it. Test a large swatch against your room's natural light at three times of day before committing — mid-tone colors shift more than light or dark colors do.

Brands that use #5157F5

Major brands whose official palette contains a color within ~30 RGB units of #5157f5 (#5157F5). Click through for the full brand color guide.

Discord#5865F2 · Discord Blurple