#5f42a6 color: Soft dark violet
#5f42a6 is rgb(95, 66, 166) in RGB and oklch(46.49% 0.15394 292.785) in OKLCH. Every other format, shade and contrast value is below.
Read as HEX
- Ctrl Vpaste a color anywhere
- Spacerandom color
- Ccopy HEX
- Violet
- Dark
- Soft
- Cool
- ≈ Sapphire
- purple-800
- Black 35%
Inside sRGB: displays the same on any screen.
Shades
From lightest to darkest. Click a shade to use it.
Harmonies
Recent
Colors you stop on or copy appear here. They stay on this device.
About #5f42a6
#5f42a6 is a soft dark violet color. In OKLCH it has 46.5% lightness, 0.154 chroma and a hue of 293°.
Inside sRGB: displays the same on any screen.
White text on it reaches 7.46:1 contrast and black text 2.82:1, so white text reads better.
The closest named color is Swiss Plum (#5946b2). In Tailwind CSS the closest color is purple-800.
Lighter: #5f42a6 mixed with white
Darker: #5f42a6 mixed with black
Calmer: #5f42a6 with less saturation
Similar named colors
Colors that go with #5f42a6
Questions about #5f42a6
What color is #5f42a6?
#5f42a6 is soft dark violet. The closest named color is Soft dark violet. In RGB it is rgb(95, 66, 166), in HSL hsl(257.4, 43.1%, 45.49%) and in OKLCH oklch(46.49% 0.15394 292.785).
What colors go well with #5f42a6?
The complementary color of #5f42a6 is #5b5f00. For a calmer combination use the analogous colors #2753ae and #80338a. The triadic partners are #933b00 and #006d53.
Is white or black text more readable on #5f42a6?
White text reads better on #5f42a6: white gives a contrast ratio of 7.46:1 and black gives 2.82:1. WCAG AA asks for at least 4.5:1 for body text.
Is #5f42a6 a warm or cool color?
#5f42a6 is a cool color. In OKLCH its hue is 293 degrees, its lightness 46.5% and its chroma 0.154.