Skip to content

#5e4792

a dark, soft violet · cool · closest name: Dark Slate Blue

RGB
94, 71, 146
HSL
258°, 35%, 43%
CMYK
36, 51, 0, 43
Luminance
0.0896

At a glance

Every number on this page in one read: what #5e4792 is made of, how bright it looks, and which way it leans.

Hex
#5e4792
Hue
258°
violet
Saturation
35%
soft
Lightness
43%
dark
Brightness
57%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0896
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Soft
Best ink
White
7.52:1
Closest name
Dark Slate Blue
ΔE2000 4.9
Where it sits
Hue258° of 360°
Saturation35%
Lightness43%
Temperature
Warm ← → Cool73% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#5e4792
RGBrgb(94, 71, 146)
HSLhsl(258, 35%, 43%)
CMYKcmyk(36%, 51%, 0%, 43%)
LABlab(35.9 27.5 -38.1)
LCHlch(35.9 47.0 305.8)
OKLCHoklch(0.459 0.119 295.5)
Decimal6178706
Display P3color(display-p3 0.369 0.278 0.573)

Copy-ready code

/* CSS */
color: #5e4792;
background-color: #5e4792;
/* Tailwind (arbitrary) */
class="text-[#5e4792] bg-[#5e4792]"
/* SCSS */
$brand: #5e4792;
/* SwiftUI */
Color(red: 0.369, green: 0.278, blue: 0.573)
/* Android */
Color.parseColor("#5e4792")
/* Flutter */
Color(0xFF5E4792)
/* Python / OpenCV (BGR) */
(146, 71, 94)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #5e4792 · 7.52:1
Use #ffffffAAA at every size.
Aa
White text · 7.52:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.79:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5e4792 as text scores 7.52:1 on white and 2.79:1 on black.

Accessibility — WCAG contrast

Aa
#5e4792 on white: 7.52:1
AA ✓ pass · AA-large · AAA
Aa
#5e4792 on black: 2.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2B5595
deuteranopia · #305390
tritanopia · #525665

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5e4792 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F7F5F9
#EEECF4
#DAD4E8
#BFB3DA
#A08EC8
#8068B6
#6A50A5
#5e4792
#47356E
#362A51
#221A32
Base = 700Lightest = 50 · #F7F5F9Darkest = 950 · #221A32
:root {
  --brand-50: #F7F5F9;
  --brand-100: #EEECF4;
  --brand-200: #DAD4E8;
  --brand-300: #BFB3DA;
  --brand-400: #A08EC8;
  --brand-500: #8068B6;
  --brand-600: #6A50A5;
  --brand-700: #5e4792;
  --brand-800: #47356E;
  --brand-900: #362A51;
  --brand-950: #221A32;
  --brand: #5e4792;
  --brand-ink: #ffffff;
}

Colors that work with #5e4792

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F6F5FA
Tinted page background
Border#D1C8E4
Hairlines and dividers
Muted text#634B9A
Captions on the surface
Accent#888D3F
Second voice, not a rival
Dark variant#372A56
Hover, pressed, headers
Light variant#F1EEF7
Selected rows, tints
Dark surface#191424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #5e4792

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#7B9247
Analogous left#475592
Analogous right#834792
Split-complement 1#928347
Split-complement 2#559247
Triadic 1#925E47
Triadic 2#47925E
Tetradic#924755

RGB percentages

Red36.9%
Green27.8%
Blue57.3%

CMYK percentages

Cyan35.6%
Magenta51.4%
Yellow0.0%
Key (black)42.7%

Color previews

#5e4792 text on a black background

contrast 2.79:1

Card sample

#5e4792 text on a white background

contrast 7.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5e4792;
Background color
Panel with #5e4792 background
background-color: #5e4792;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5e4792;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(94, 71, 146, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(94, 71, 146, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5e4792;
background: linear-gradient(135deg, #5e4792, #904792);

Monochromatic scale

Palettes built from #5e4792

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#5e4792 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#5e4792, answered

What color is #5e4792?

#5e4792 is a dark soft violet, closest to Dark Slate Blue (ΔE2000 4.9). It sits at 258° on the hue wheel with 35% saturation and 43% lightness, which reads as cool.

What is the RGB value of #5e4792?

rgb(94, 71, 146) — 94 red, 71 green and 146 blue out of 255, or 36.9% / 27.8% / 57.3% by channel.

Is #5e4792 a light or a dark color?

It is a dark color. Relative luminance is 0.0896 and perceived brightness is 35%, so white text on it reaches 7.52:1.

Should I use black or white text on #5e4792?

White. It scores 7.52:1 against #5e4792, versus 2.79:1 for black — AAA at any size.

What is the complementary color of #5e4792?

#7B9247 sits directly opposite on the wheel. Softer options are the split-complements #928347 and #559247, which give the same contrast with far less vibration.

What colors go well with #5e4792?

For interface work: #F6F5FA as the surface, #D1C8E4 for borders, #634B9A for secondary text, #888D3F as an accent and #372A56 for hover and pressed states. For a palette, the analogous pair #475592 and #834792 stays calm, while #7B9247 is the loudest partner.

What is #5e4792 in CMYK for printing?

cmyk(36%, 51%, 0%, 43%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #5e4792 warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #794792; nudged cooler, #454994.

Work with #5e4792 in the Color Lab