#5A1FFC color

#5A1FFC rgb(90, 31, 252)
Shades of purple

The hex color #5A1FFC is a vivid violet.

In the RGB color model it is made of 35.3% red, 12.2% green and 98.8% blue (90, 31, 252).

Its hue angle is 256°, with 97% saturation and 55% lightness. For print, the CMYK equivalent is 64% cyan, 88% magenta, 0% yellow and 1% black.

The closest named color is Electric Indigo (#6600FF), a difference of 1.9 ΔE, which is barely visible.

White text is the more readable choice on this background (contrast 6.92:1).

#5A1FFC color codes

HEX#5A1FFC
RGBrgb(90, 31, 252)
RGB percentrgb(35.3%, 12.2%, 98.8%)
HSLhsl(256, 97%, 55%)
HSV / HSBhsv(256, 88%, 99%)
CMYKcmyk(64%, 88%, 0%, 1%)
CIE LABlab(38.16, 74.79, -96.28)
CIE LCHlch(38.16, 121.92, 307.84)
CIE XYZxyz(22.272, 10.18, 92.868)
Decimal5906428
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #5A1FFC, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #5A1FFCRatioAAAAAAA large
Sample text3.04:1FailFailPass
Sample text6.92:1PassFailPass
#5A1FFC as text onRatioAAAAAAA large
Sample text6.92:1PassFailPass
Sample text3.04:1FailFailPass

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #5A1FFC looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #5a1ffc; }
.text { color: #5a1ffc; }
.border { border: 2px solid #5a1ffc; }
.transparent { background-color: rgb(90 31 252 / 50%); }
.gradient { background: linear-gradient(to right, #5a1ffc, #c91ffc); }
Background
Text color
Border

Similar colors

Closest common color name: Blue.

Questions

What color is #5A1FFC?
#5A1FFC is a vivid violet, closest to the named color Electric Indigo. It belongs to the purple family of colors.
What is the RGB value of #5A1FFC?
The RGB value is 90, 31, 252: 90 red, 31 green and 252 blue on a 0 to 255 scale.
What is the complementary color of #5A1FFC?
The complementary color is #C1FC1F, found by rotating the hue 180° on the color wheel.
Is black or white text better on #5A1FFC?
White text. Black text has a contrast ratio of 3.04:1 and white text 6.92:1. WCAG asks for at least 4.5:1 for normal text.