# #5f56a6 color: Yuè Guāng Lán Moonlight

#5f56a6 is rgb(95, 86, 166) in RGB and oklch(50.072% 0.12405 286.148) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #5f56a6 |
| RGB | rgb(95, 86, 166) |
| HSL | hsl(246.75, 31.75%, 49.41%) |
| HSB / HSV | hsv(246.75 48.19% 65.1%) |
| HWB | hwb(246.75 33.73% 34.9%) |
| CMYK | cmyk(43% 48% 0% 35%) |
| Lab | lab(40.46 19.63 -42.65) |
| LCH | lch(40.46 46.95 294.71) |
| OKLab | oklab(50.072% 0.0345 -0.11915) |
| OKLCH | oklch(50.072% 0.12405 286.148) |
| Display P3 | color(display-p3 0.36658 0.3385 0.63097) |
| Rec. 2020 | color(rec2020 0.32244 0.28688 0.5875) |
| Adobe RGB | color(a98-rgb 0.36402 0.33969 0.63587) |
| ProPhoto RGB | color(prophoto-rgb 0.34191 0.28329 0.55178) |
| Linear sRGB | color(srgb-linear 0.11444 0.09306 0.38133) |
| XYZ D65 | color(xyz-d65 0.14929 0.11842 0.37577) |
| XYZ D50 | color(xyz-d50 0.1403 0.11529 0.28293) |
| SwiftUI | Color(red: 0.373, green: 0.337, blue: 0.651) |
| UIKit | UIColor(red: 0.373, green: 0.337, blue: 0.651, alpha: 1) |
| Flutter / Compose | Color(0xFF5F56A6) |
| Android XML | #5F56A6 |

## Facts

- Closest name: Yuè Guāng Lán Moonlight
- Hue family: Violet, soft violet
- Closest Tailwind class: sky-700
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 6.23:1
- Contrast with black: 3.37:1

## Tints

#5f56a6, #6d67b0, #7c77b9, #8b88c2, #9a98cb, #aaa9d4, #babadd, #cbcbe6, #dcdcee, #ededf7

## Shades

#5f56a6, #524a90, #443e7a, #383265, #2c2751, #201c3e, #15122b, #0a081a, #03020a, #000001

## Tones

#5f56a6, #5f58a0, #5f5a99, #5f5b93, #605d8c, #605e86, #61607f, #616178, #626271, #63636a

## Harmonies

- Complementary: #5f56a6, #6d6700
- Split: #5f56a6, #8b5700, #407323
- Analogous: #5f56a6, #2e63a8, #7f4a92
- Triadic: #5f56a6, #9b481a, #007953
- Tetradic: #5f56a6, #944272, #6d6700, #007953
- Square: #5f56a6, #9d404b, #6d6700, #007577
- Monochromatic: #5f56a6, #24105c, #403480, #817acd, #a59ff6

## Questions about #5f56a6

### What color is #5f56a6?

#5f56a6 is soft violet. The closest named color is Yuè Guāng Lán Moonlight. In RGB it is rgb(95, 86, 166), in HSL hsl(246.75, 31.75%, 49.41%) and in OKLCH oklch(50.072% 0.12405 286.148).

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

The complementary color of #5f56a6 is #6d6700. For a calmer combination use the analogous colors #2e63a8 and #7f4a92. The triadic partners are #9b481a and #007953.

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

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

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

#5f56a6 is a cool color. In OKLCH its hue is 286 degrees, its lightness 50.1% and its chroma 0.124.
