Skip to the color picker

#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.

Read as HEX

247°
100%

44.5%
0.118
286°
  • Violet
  • Dark
  • Soft
  • Cool
  • ≈ Cobalt
  • slate-600
  • Black 43%

Inside sRGB: displays the same on any screen.

White text
7.92:1Readable · AA
Lc -92
Black text
2.65:1Hard to read
Lc 17

Shades

From lightest to darkest. Click a shade to use it.

Harmonies

Recent

Colors you stop on or copy appear here. They stay on this device.

About #504791

#504791 is a soft dark violet color. In OKLCH it has 44.5% lightness, 0.118 chroma and a hue of 286°.

Inside sRGB: displays the same on any screen.

White text on it reaches 7.92:1 contrast and black text 2.65:1, so white text reads better.

The closest named color is Moonlight Sonata (#4e468b). In Tailwind CSS the closest color is slate-600.

More dark violet colors

Lighter: #504791 mixed with white

Darker: #504791 mixed with black

Calmer: #504791 with less saturation

Similar named colors

Colors that go with #504791

Complementary
Analogous
Triadic
Split

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.