# #504790 color: Moonlight Sonata

#504790 is rgb(80, 71, 144) in RGB and oklch(44.42% 0.1162 286.293) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/504790

## Formats

| Format | Value |
| --- | --- |
| HEX | #504790 |
| RGB | rgb(80, 71, 144) |
| HSL | hsl(247.4, 33.95%, 42.16%) |
| HSB / HSV | hsv(247.4 50.69% 56.47%) |
| HWB | hwb(247.4 27.84% 43.53%) |
| CMYK | cmyk(44% 51% 0% 44%) |
| Lab | lab(33.97 18.87 -39.86) |
| LCH | lch(33.97 44.1 295.33) |
| OKLab | oklab(44.42% 0.0326 -0.11153) |
| OKLCH | oklch(44.42% 0.1162 286.293) |
| Display P3 | color(display-p3 0.30781 0.27969 0.54673) |
| Rec. 2020 | color(rec2020 0.25968 0.22566 0.49679) |
| Adobe RGB | color(a98-rgb 0.30854 0.2845 0.55137) |
| ProPhoto RGB | color(prophoto-rgb 0.28205 0.22965 0.46308) |
| Linear sRGB | color(srgb-linear 0.08022 0.06301 0.27889) |
| XYZ D65 | color(xyz-d65 0.10595 0.08225 0.27416) |
| XYZ D50 | color(xyz-d50 0.09915 0.07993 0.20639) |
| SwiftUI | Color(red: 0.314, green: 0.278, blue: 0.565) |
| UIKit | UIColor(red: 0.314, green: 0.278, blue: 0.565, alpha: 1) |
| Flutter / Compose | Color(0xFF504790) |
| Android XML | #504790 |

## Facts

- Closest name: Moonlight Sonata
- Hue family: Violet, soft dark violet
- Closest Tailwind class: slate-600
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 7.94:1
- Contrast with black: 2.65:1

## Tints

#504790, #5f599c, #6f6aa7, #7f7cb2, #908ebe, #a2a0c9, #b4b3d4, #c6c6df, #d9d8ea, #ececf4

## Shades

#504790, #443d7d, #39326a, #2e2857, #241f45, #1a1634, #100d24, #070615, #020207, #000001

## Tones

#504790, #50498a, #504b84, #504c7e, #514e79, #514f73, #51506d, #525166, #525260, #53535a

## Harmonies

- Complementary: #504790, #5c5600
- Split: #504790, #764900, #336117
- Analogous: #504790, #235392, #6c3c7e
- Triadic: #504790, #853a0d, #006745
- Tetradic: #504790, #7f3561, #5c5600, #006745
- Square: #504790, #88333d, #5c5600, #006365
- Monochromatic: #504790, #180148, #32256b, #716ab6, #948ede

## Questions about #504790

### What color is #504790?

#504790 is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(80, 71, 144), in HSL hsl(247.4, 33.95%, 42.16%) and in OKLCH oklch(44.42% 0.1162 286.293).

### What colors go well with #504790?

The complementary color of #504790 is #5c5600. For a calmer combination use the analogous colors #235392 and #6c3c7e. The triadic partners are #853a0d and #006745.

### Is white or black text more readable on #504790?

White text reads better on #504790: white gives a contrast ratio of 7.94:1 and black gives 2.65:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #504790 a warm or cool color?

#504790 is a cool color. In OKLCH its hue is 286 degrees, its lightness 44.4% and its chroma 0.116.
