Skip to content

#5d4792

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

RGB
93, 71, 146
HSL
258°, 35%, 43%
CMYK
36, 51, 0, 43
Luminance
0.0891

At a glance

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

Hex
#5d4792
Hue
258°
violet
Saturation
35%
soft
Lightness
43%
dark
Brightness
57%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0891
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Soft
Best ink
White
7.55:1
Closest name
Dark Slate Blue
ΔE2000 4.8
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#5d4792
RGBrgb(93, 71, 146)
HSLhsl(258, 35%, 43%)
CMYKcmyk(36%, 51%, 0%, 43%)
LABlab(35.8 27.2 -38.3)
LCHlch(35.8 47.0 305.4)
OKLCHoklch(0.458 0.119 294.8)
Decimal6113170
Display P3color(display-p3 0.365 0.278 0.573)

Copy-ready code

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

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 #5d4792 · 7.55:1
Use #ffffffAAA at every size.
Aa
White text · 7.55:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.78:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5d4792 as text scores 7.55:1 on white and 2.78:1 on black.

Accessibility — WCAG contrast

Aa
#5d4792 on white: 7.55:1
AA ✓ pass · AA-large · AAA
Aa
#5d4792 on black: 2.78:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2B5595
deuteranopia · #2F5390
tritanopia · #505665

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5d4792 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.

#F6F5F9
#EEECF4
#DAD4E8
#BFB3DA
#9F8EC8
#7F68B6
#6950A5
#5d4792
#46356E
#352A51
#211A32
Base = 700Lightest = 50 · #F6F5F9Darkest = 950 · #211A32
:root {
  --brand-50: #F6F5F9;
  --brand-100: #EEECF4;
  --brand-200: #DAD4E8;
  --brand-300: #BFB3DA;
  --brand-400: #9F8EC8;
  --brand-500: #7F68B6;
  --brand-600: #6950A5;
  --brand-700: #5d4792;
  --brand-800: #46356E;
  --brand-900: #352A51;
  --brand-950: #211A32;
  --brand: #5d4792;
  --brand-ink: #ffffff;
}

Colors that work with #5d4792

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#D0C8E4
Hairlines and dividers
Muted text#624B9A
Captions on the surface
Accent#8A8D3F
Second voice, not a rival
Dark variant#372A56
Hover, pressed, headers
Light variant#F0EEF7
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 #5d4792

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#7C9247
Analogous left#475692
Analogous right#824792
Split-complement 1#928247
Split-complement 2#569247
Triadic 1#925D47
Triadic 2#47925D
Tetradic#924756

RGB percentages

Red36.5%
Green27.8%
Blue57.3%

CMYK percentages

Cyan36.3%
Magenta51.4%
Yellow0.0%
Key (black)42.7%

Color previews

#5d4792 text on a black background

contrast 2.78:1

Card sample

#5d4792 text on a white background

contrast 7.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5d4792

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.

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

#5d4792, answered

What color is #5d4792?

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

What is the RGB value of #5d4792?

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

Is #5d4792 a light or a dark color?

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

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

White. It scores 7.55:1 against #5d4792, versus 2.78:1 for black — AAA at any size.

What is the complementary color of #5d4792?

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

What colors go well with #5d4792?

For interface work: #F6F5FA as the surface, #D0C8E4 for borders, #624B9A for secondary text, #8A8D3F as an accent and #372A56 for hover and pressed states. For a palette, the analogous pair #475692 and #824792 stays calm, while #7C9247 is the loudest partner.

What is #5d4792 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 #5d4792 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 #784792; nudged cooler, #454B94.

Work with #5d4792 in the Color Lab