# #504791 color: Moonlight Sonata

#504791 is rgb(80, 71, 145) in RGB and oklch(44.487% 0.11766 286.135) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #504791 |
| RGB | rgb(80, 71, 145) |
| HSL | hsl(247.3, 34.26%, 42.35%) |
| HSB / HSV | hsv(247.3 51.03% 56.86%) |
| HWB | hwb(247.3 27.84% 43.14%) |
| CMYK | cmyk(45% 51% 0% 43%) |
| Lab | lab(34.02 19.11 -40.39) |
| LCH | lch(34.02 44.68 295.33) |
| OKLab | oklab(44.487% 0.0327 -0.11303) |
| OKLCH | oklch(44.487% 0.11766 286.135) |
| Display P3 | color(display-p3 0.30781 0.27969 0.55045) |
| Rec. 2020 | color(rec2020 0.26004 0.22577 0.50076) |
| Adobe RGB | color(a98-rgb 0.30854 0.2845 0.55514) |
| ProPhoto RGB | color(prophoto-rgb 0.28296 0.22987 0.46686) |
| Linear sRGB | color(srgb-linear 0.08022 0.06301 0.28315) |
| XYZ D65 | color(xyz-d65 0.10672 0.08256 0.2782) |
| XYZ D50 | color(xyz-d50 0.09976 0.08018 0.20943) |
| SwiftUI | Color(red: 0.314, green: 0.278, blue: 0.569) |
| UIKit | UIColor(red: 0.314, green: 0.278, blue: 0.569, alpha: 1) |
| Flutter / Compose | Color(0xFF504791) |
| Android XML | #504791 |

## 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.92:1
- Contrast with black: 2.65:1

## Tints

#504791, #5f599c, #6f6aa8, #7f7cb3, #908ebe, #a2a0c9, #b4b3d4, #c6c6df, #d9d8ea, #ececf4

## Shades

#504791, #443d7d, #39326a, #2e2858, #241f46, #1a1635, #100d25, #070615, #020207, #000001

## Tones

#504791, #50498b, #504b85, #504c7f, #514e79, #514f73, #51506d, #525167, #525261, #53535a

## Harmonies

- Complementary: #504791, #5d5600
- Split: #504791, #764900, #336215
- Analogous: #504791, #225393, #6d3c7f
- Triadic: #504791, #863a0b, #006745
- Tetradic: #504791, #803461, #5d5600, #006745
- Square: #504791, #89333d, #5d5600, #006365
- Monochromatic: #504791, #180048, #32256c, #716ab7, #948edf

## Questions about #504791

### What color is #504791?

#504791 is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(80, 71, 145), in HSL hsl(247.3, 34.26%, 42.35%) and in OKLCH oklch(44.487% 0.11766 286.135).

### What colors go well with #504791?

The complementary color of #504791 is #5d5600. For a calmer combination use the analogous colors #225393 and #6d3c7f. The triadic partners are #863a0b and #006745.

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

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

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

#504791 is a cool color. In OKLCH its hue is 286 degrees, its lightness 44.5% and its chroma 0.118.
