# #512878 color: Mystic Nights

#512878 is rgb(81, 40, 120) in RGB and oklch(37.426% 0.13215 304.29) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #512878 |
| RGB | rgb(81, 40, 120) |
| HSL | hsl(270.75, 50%, 31.37%) |
| HSB / HSV | hsv(270.75 66.67% 47.06%) |
| HWB | hwb(270.75 15.69% 52.94%) |
| CMYK | cmyk(33% 67% 0% 53%) |
| Lab | lab(25.23 31.77 -38.93) |
| LCH | lch(25.23 50.25 309.22) |
| OKLab | oklab(37.426% 0.07445 -0.10918) |
| OKLCH | oklch(37.426% 0.13215 304.29) |
| Display P3 | color(display-p3 0.29634 0.16507 0.45406) |
| Rec. 2020 | color(rec2020 0.22587 0.11828 0.39781) |
| Adobe RGB | color(a98-rgb 0.28832 0.17344 0.45964) |
| ProPhoto RGB | color(prophoto-rgb 0.24058 0.14754 0.36929) |
| Linear sRGB | color(srgb-linear 0.08228 0.02122 0.18782) |
| XYZ D65 | color(xyz-d65 0.07542 0.04623 0.18265) |
| XYZ D50 | color(xyz-d50 0.07093 0.0449 0.13733) |
| SwiftUI | Color(red: 0.318, green: 0.157, blue: 0.471) |
| UIKit | UIColor(red: 0.318, green: 0.157, blue: 0.471, alpha: 1) |
| Flutter / Compose | Color(0xFF512878) |
| Android XML | #512878 |

## Facts

- Closest name: Mystic Nights
- Hue family: Purple, soft dark purple
- Closest Tailwind class: purple-900
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 10.91:1
- Contrast with black: 1.92:1

## Tints

#512878, #613e86, #715293, #8167a1, #927caf, #a391bc, #b5a6ca, #c7bcd7, #d9d2e4, #ece8f2

## Shades

#512878, #452167, #3a1b57, #2f1548, #240f39, #1a092a, #10041d, #070210, #020105, #000001

## Tones

#512878, #4f2c73, #4e2f6d, #4c3268, #4a3563, #49385d, #473a58, #453c52, #443e4c, #423f47

## Harmonies

- Complementary: #512878, #344a00
- Split: #512878, #513f00, #005220
- Analogous: #512878, #2e3585, #681c5d
- Triadic: #512878, #653100, #004f46
- Tetradic: #512878, #751438, #344a00, #004f46
- Square: #512878, #771901, #344a00, #004b5d
- Monochromatic: #512878, #110025, #320054, #734b9d, #966ec4

## Questions about #512878

### What color is #512878?

#512878 is soft dark purple. The closest named color is Mystic Nights. In RGB it is rgb(81, 40, 120), in HSL hsl(270.75, 50%, 31.37%) and in OKLCH oklch(37.426% 0.13215 304.29).

### What colors go well with #512878?

The complementary color of #512878 is #344a00. For a calmer combination use the analogous colors #2e3585 and #681c5d. The triadic partners are #653100 and #004f46.

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

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

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

#512878 is a neutral color. In OKLCH its hue is 304 degrees, its lightness 37.4% and its chroma 0.132.
