# #5a40a1 color: Soft dark violet

#5a40a1 is rgb(90, 64, 161) in RGB and oklch(45.296% 0.15014 291.616) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/5a40a1

## Formats

| Format | Value |
| --- | --- |
| HEX | #5a40a1 |
| RGB | rgb(90, 64, 161) |
| HSL | hsl(256.08, 43.11%, 44.12%) |
| HSB / HSV | hsv(256.08 60.25% 63.14%) |
| HWB | hwb(256.08 25.1% 36.86%) |
| CMYK | cmyk(44% 60% 0% 37%) |
| Lab | lab(34.21 29.91 -49.68) |
| LCH | lch(34.21 57.99 301.05) |
| OKLab | oklab(45.296% 0.05531 -0.13958) |
| OKLCH | oklch(45.296% 0.15014 291.616) |
| Display P3 | color(display-p3 0.33749 0.25515 0.60968) |
| Rec. 2020 | color(rec2020 0.28448 0.20657 0.56397) |
| Adobe RGB | color(a98-rgb 0.33069 0.25904 0.61543) |
| ProPhoto RGB | color(prophoto-rgb 0.30954 0.2188 0.52748) |
| Linear sRGB | color(srgb-linear 0.10224 0.05127 0.3564) |
| XYZ D65 | color(xyz-d65 0.12482 0.08414 0.34686) |
| XYZ D50 | color(xyz-d50 0.11532 0.08111 0.26091) |
| SwiftUI | Color(red: 0.353, green: 0.251, blue: 0.631) |
| UIKit | UIColor(red: 0.353, green: 0.251, blue: 0.631, alpha: 1) |
| Flutter / Compose | Color(0xFF5A40A1) |
| Android XML | #5A40A1 |

## Facts

- Closest name: Soft dark violet
- Hue family: Violet, soft dark violet
- Closest Tailwind class: purple-800
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 7.83:1
- Contrast with black: 2.68:1

## Tints

#5a40a1, #6854ab, #7766b5, #8679bf, #968cc9, #a79fd3, #b8b1dc, #c9c5e5, #dbd8ee, #edebf7

## Shades

#5a40a1, #4d368b, #412d76, #352462, #291b4e, #1e133c, #130b2a, #090519, #030109, #000001

## Tones

#5a40a1, #59449a, #584793, #58498b, #574c84, #574e7d, #565075, #56526e, #565366, #56555e

## Harmonies

- Complementary: #5a40a1, #595b00
- Split: #5a40a1, #754e00, #0f6901
- Analogous: #5a40a1, #2250a8, #7a3287
- Triadic: #5a40a1, #8f3700, #00694e
- Tetradic: #5a40a1, #8f275f, #595b00, #00694e
- Square: #5a40a1, #98252e, #595b00, #00656c
- Monochromatic: #5a40a1, #200053, #3b1b7b, #7b64c8, #9f89f1

## Questions about #5a40a1

### What color is #5a40a1?

#5a40a1 is soft dark violet. The closest named color is Soft dark violet. In RGB it is rgb(90, 64, 161), in HSL hsl(256.08, 43.11%, 44.12%) and in OKLCH oklch(45.296% 0.15014 291.616).

### What colors go well with #5a40a1?

The complementary color of #5a40a1 is #595b00. For a calmer combination use the analogous colors #2250a8 and #7a3287. The triadic partners are #8f3700 and #00694e.

### Is white or black text more readable on #5a40a1?

White text reads better on #5a40a1: white gives a contrast ratio of 7.83:1 and black gives 2.68:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #5a40a1 a warm or cool color?

#5a40a1 is a cool color. In OKLCH its hue is 292 degrees, its lightness 45.3% and its chroma 0.15.
