# #5f42a8 color: Soft dark violet

#5f42a8 is rgb(95, 66, 168) in RGB and oklch(46.638% 0.15654 292.356) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #5f42a8 |
| RGB | rgb(95, 66, 168) |
| HSL | hsl(257.06, 43.59%, 45.88%) |
| HSB / HSV | hsv(257.06 60.71% 65.88%) |
| HWB | hwb(257.06 25.88% 34.12%) |
| CMYK | cmyk(43% 61% 0% 34%) |
| Lab | lab(35.65 31.72 -51.53) |
| LCH | lch(35.65 60.51 301.61) |
| OKLab | oklab(46.638% 0.05954 -0.14478) |
| OKLCH | oklch(46.638% 0.15654 292.356) |
| Display P3 | color(display-p3 0.35551 0.26355 0.63619) |
| Rec. 2020 | color(rec2020 0.30229 0.21629 0.59256) |
| Adobe RGB | color(a98-rgb 0.34674 0.26629 0.64228) |
| ProPhoto RGB | color(prophoto-rgb 0.32684 0.22801 0.55564) |
| Linear sRGB | color(srgb-linear 0.11444 0.05448 0.39157) |
| XYZ D65 | color(xyz-d65 0.13734 0.09156 0.38091) |
| XYZ D50 | color(xyz-d50 0.12691 0.08825 0.2865) |
| SwiftUI | Color(red: 0.373, green: 0.259, blue: 0.659) |
| UIKit | UIColor(red: 0.373, green: 0.259, blue: 0.659, alpha: 1) |
| Flutter / Compose | Color(0xFF5F42A8) |
| Android XML | #5F42A8 |

## 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.42:1
- Contrast with black: 2.83:1

## Tints

#5f42a8, #6d56b2, #7b68bb, #8a7bc5, #9a8dce, #aaa0d6, #bab3df, #cbc6e7, #dcd8ef, #edecf7

## Shades

#5f42a8, #523892, #442f7c, #382567, #2c1c52, #20143f, #150b2c, #0a051a, #03010a, #000001

## Tones

#5f42a8, #5e46a0, #5d4999, #5c4c91, #5c4f8a, #5b5182, #5b537a, #5a5572, #5a576a, #5a5862

## Harmonies

- Complementary: #5f42a8, #5c5f00
- Split: #5f42a8, #795100, #066e03
- Analogous: #5f42a8, #2553b0, #81338c
- Triadic: #5f42a8, #943b00, #006d53
- Tetradic: #5f42a8, #962762, #5c5f00, #006d53
- Square: #5f42a8, #9f262e, #5c5f00, #006972
- Monochromatic: #5f42a8, #240059, #401c81, #8166d0, #a48bf9

## Questions about #5f42a8

### What color is #5f42a8?

#5f42a8 is soft dark violet. The closest named color is Soft dark violet. In RGB it is rgb(95, 66, 168), in HSL hsl(257.06, 43.59%, 45.88%) and in OKLCH oklch(46.638% 0.15654 292.356).

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

The complementary color of #5f42a8 is #5c5f00. For a calmer combination use the analogous colors #2553b0 and #81338c. The triadic partners are #943b00 and #006d53.

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

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

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

#5f42a8 is a cool color. In OKLCH its hue is 292 degrees, its lightness 46.6% and its chroma 0.157.
