# #5f42a5 color: Soft dark violet

#5f42a5 is rgb(95, 66, 165) in RGB and oklch(46.417% 0.15264 293.004) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #5f42a5 |
| RGB | rgb(95, 66, 165) |
| HSL | hsl(257.58, 42.86%, 45.29%) |
| HSB / HSV | hsv(257.58 60% 64.71%) |
| HWB | hwb(257.58 25.88% 35.29%) |
| CMYK | cmyk(42% 60% 0% 35%) |
| Lab | lab(35.46 31.03 -50.03) |
| LCH | lch(35.46 58.87 301.81) |
| OKLab | oklab(46.417% 0.05965 -0.1405) |
| OKLCH | oklch(46.417% 0.15264 293.004) |
| Display P3 | color(display-p3 0.35551 0.26355 0.62499) |
| Rec. 2020 | color(rec2020 0.30117 0.21589 0.58048) |
| Adobe RGB | color(a98-rgb 0.34674 0.26629 0.63081) |
| ProPhoto RGB | color(prophoto-rgb 0.3239 0.22722 0.54375) |
| Linear sRGB | color(srgb-linear 0.11444 0.05448 0.37626) |
| XYZ D65 | color(xyz-d65 0.13458 0.09046 0.36636) |
| XYZ D50 | color(xyz-d50 0.12472 0.08733 0.27557) |
| SwiftUI | Color(red: 0.373, green: 0.259, blue: 0.647) |
| UIKit | UIColor(red: 0.373, green: 0.259, blue: 0.647, alpha: 1) |
| Flutter / Compose | Color(0xFF5F42A5) |
| Android XML | #5F42A5 |

## 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.48:1
- Contrast with black: 2.81:1

## Tints

#5f42a5, #6d55af, #7b68b9, #8a7bc2, #9a8dcc, #aaa0d5, #bab2de, #cbc5e6, #dcd8ef, #edecf7

## Shades

#5f42a5, #52388f, #442f79, #382565, #2c1c51, #20143d, #150b2b, #0a051a, #03010a, #000001

## Tones

#5f42a5, #5e469e, #5d4996, #5c4c8f, #5b4e88, #5b5180, #5a5379, #5a5571, #595669, #595861

## Harmonies

- Complementary: #5f42a5, #5b5f00
- Split: #5f42a5, #785100, #056d0b
- Analogous: #5f42a5, #2853ad, #803489
- Triadic: #5f42a5, #933b00, #006c53
- Tetradic: #5f42a5, #952960, #5b5f00, #006c53
- Square: #5f42a5, #9d282e, #5b5f00, #006871
- Monochromatic: #5f42a5, #240057, #401d7f, #8166cd, #a48bf5

## Questions about #5f42a5

### What color is #5f42a5?

#5f42a5 is soft dark violet. The closest named color is Soft dark violet. In RGB it is rgb(95, 66, 165), in HSL hsl(257.58, 42.86%, 45.29%) and in OKLCH oklch(46.417% 0.15264 293.004).

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

The complementary color of #5f42a5 is #5b5f00. For a calmer combination use the analogous colors #2853ad and #803489. The triadic partners are #933b00 and #006c53.

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

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

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

#5f42a5 is a cool color. In OKLCH its hue is 293 degrees, its lightness 46.4% and its chroma 0.153.
