# #50418c color: Moonlight Sonata

#50418c is rgb(80, 65, 140) in RGB and oklch(42.997% 0.11972 289.599) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/50418c

## Formats

| Format | Value |
| --- | --- |
| HEX | #50418c |
| RGB | rgb(80, 65, 140) |
| HSL | hsl(252, 36.59%, 40.2%) |
| HSB / HSV | hsv(252 53.57% 54.9%) |
| HWB | hwb(252 25.49% 45.1%) |
| CMYK | cmyk(43% 54% 0% 45%) |
| Lab | lab(32.18 21.52 -40.28) |
| LCH | lch(32.18 45.66 298.12) |
| OKLab | oklab(42.997% 0.04016 -0.11279) |
| OKLCH | oklch(42.997% 0.11972 289.599) |
| Display P3 | color(display-p3 0.30425 0.25711 0.53112) |
| Rec. 2020 | color(rec2020 0.25168 0.20389 0.47999) |
| Adobe RGB | color(a98-rgb 0.3031 0.26266 0.5359) |
| ProPhoto RGB | color(prophoto-rgb 0.27323 0.2123 0.44681) |
| Linear sRGB | color(srgb-linear 0.08022 0.05286 0.26225) |
| XYZ D65 | color(xyz-d65 0.09932 0.07379 0.25713) |
| XYZ D50 | color(xyz-d50 0.09286 0.07164 0.19352) |
| SwiftUI | Color(red: 0.314, green: 0.255, blue: 0.549) |
| UIKit | UIColor(red: 0.314, green: 0.255, blue: 0.549, alpha: 1) |
| Flutter / Compose | Color(0xFF50418C) |
| Android XML | #50418C |

## Facts

- Closest name: Moonlight Sonata
- Hue family: Violet, soft dark violet
- Closest Tailwind class: indigo-900
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 8.48:1
- Contrast with black: 2.48:1

## Tints

#50418c, #5f5398, #6f66a4, #7f78b0, #908bbb, #a29dc7, #b4b0d2, #c6c4dd, #d9d7e9, #ecebf4

## Shades

#50418c, #443779, #392e67, #2e2555, #241c43, #1a1333, #100b23, #070514, #020107, #000001

## Tones

#50418c, #504386, #4f4580, #4f477b, #4f4975, #4f4a6f, #4f4c69, #4f4d63, #4f4e5c, #4f4f56

## Harmonies

- Complementary: #50418c, #555400
- Split: #50418c, #6e4700, #265f16
- Analogous: #50418c, #244e90, #6b3678
- Triadic: #50418c, #813600, #006246
- Tetradic: #50418c, #7d2f59, #555400, #006246
- Square: #50418c, #852e34, #555400, #005e63
- Monochromatic: #50418c, #180044, #321f67, #7164b2, #9488da

## Questions about #50418c

### What color is #50418c?

#50418c is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(80, 65, 140), in HSL hsl(252, 36.59%, 40.2%) and in OKLCH oklch(42.997% 0.11972 289.599).

### What colors go well with #50418c?

The complementary color of #50418c is #555400. For a calmer combination use the analogous colors #244e90 and #6b3678. The triadic partners are #813600 and #006246.

### Is white or black text more readable on #50418c?

White text reads better on #50418c: white gives a contrast ratio of 8.48:1 and black gives 2.48:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #50418c a warm or cool color?

#50418c is a cool color. In OKLCH its hue is 290 degrees, its lightness 43% and its chroma 0.12.
