#5A257F color

#5A257F rgb(90, 37, 127)
Shades of purple

The hex color #5A257F is a dark, moderate violet.

In the RGB color model it is made of 35.3% red, 14.5% green and 49.8% blue (90, 37, 127).

Its hue angle is 275°, with 55% saturation and 32% lightness. For print, the CMYK equivalent is 29% cyan, 71% magenta, 0% yellow and 50% black.

The closest named color is Purple Patch (#5C2E88), a difference of 2.4 ΔE, a small difference.

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

#5A257F color codes

HEX#5A257F
RGBrgb(90, 37, 127)
RGB percentrgb(35.3%, 14.5%, 49.8%)
HSLhsl(275, 55%, 32%)
HSV / HSBhsv(275, 71%, 50%)
CMYKcmyk(29%, 71%, 0%, 50%)
CIE LABlab(26.82, 40.84, -40.97)
CIE LCHlch(26.82, 57.85, 314.92)
CIE XYZxyz(8.708, 5.029, 20.587)
Decimal5907839
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #5A257F, 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 #5A257FRatioAAAAAAA large
Sample text2.01:1FailFailFail
Sample text10.47:1PassPassPass
#5A257F as text onRatioAAAAAAA large
Sample text10.47:1PassPassPass
Sample text2.01:1FailFailFail

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 #5A257F looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #5a257f; }
.text { color: #5a257f; }
.border { border: 2px solid #5a257f; }
.transparent { background-color: rgb(90 37 127 / 50%); }
.gradient { background: linear-gradient(to right, #5a257f, #7f2577); }
Background
Text color
Border

Similar colors

Closest common color name: Rebecca Purple.

Questions

What color is #5A257F?
#5A257F is a dark, moderate violet, closest to the named color Purple Patch. It belongs to the purple family of colors.
What is the RGB value of #5A257F?
The RGB value is 90, 37, 127: 90 red, 37 green and 127 blue on a 0 to 255 scale.
What is the complementary color of #5A257F?
The complementary color is #4A7F25, found by rotating the hue 180° on the color wheel.
Is black or white text better on #5A257F?
White text. Black text has a contrast ratio of 2.01:1 and white text 10.47:1. WCAG asks for at least 4.5:1 for normal text.