#5E4792

A color in the Violet family

#5e4792 is a color in the Violet family: RGB(94, 71, 146), HSL(258°, 35%, 43%), CMYK(36%, 51%, 0%, 43%). Closest named color: darkslateblue. Contrast is 7.52:1 on white and 2.79:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#5e4792
RGBrgb(94 71 146)
RGB (legacy)rgb(94, 71, 146)
RGB %rgb(37% 28% 57%)
HSLhsl(258 35% 43%)
HSV / HSBhsv(258, 51%, 57%)
HWBhwb(258 28% 43%)
CMYKcmyk(36%, 51%, 0%, 43%)
CIELAB (D50)lab(35.5 23.57 -38.54)
LCHlch(35.5 45.18 301.44)
OKLaboklab(0.4588 0.0512 -0.1076)
OKLCHoklch(0.4588 0.1192 295.46)
Decimal6178706

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 4.9
Closest web-safe color#663399
Hue258°
Saturation (HSL / HSV)35% / 51%
Lightness (HSL)43%
Brightness or Value (HSV)57%
Luminance (Rec.601 / Rec.709)34% / 32%
Relative luminance (WCAG)0.0896
Red / Green / Blue94 / 71 / 146

WCAG 2.2 Contrast Ratio

On White (#ffffff)
7.52:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.79:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 85.9 / -16.1 · As background with white / black text: Lc -90.8 / 18.1

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #5e4792;
  --color-brand-oklch: oklch(45.88% 0.1192 295.46);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(94 71 146 / 50%); }
/* Tailwind CSS */
<div class="bg-[#5e4792] text-[#5e4792] border-[#5e4792]">