Skip to content

#5c4792

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

RGB
92, 71, 146
HSL
257°, 35%, 43%
CMYK
37, 51, 0, 43
Luminance
0.0886

At a glance

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

Hex
#5c4792
Hue
257°
violet
Saturation
35%
soft
Lightness
43%
dark
Brightness
57%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0886
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Soft
Best ink
White
7.58:1
Closest name
Dark Slate Blue
ΔE2000 4.6
Where it sits
Hue257° of 360°
Saturation35%
Lightness43%
Temperature
Warm ← → Cool74% 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#5c4792
RGBrgb(92, 71, 146)
HSLhsl(257, 35%, 43%)
CMYKcmyk(37%, 51%, 0%, 43%)
LABlab(35.7 26.9 -38.5)
LCHlch(35.7 46.9 305.0)
OKLCHoklch(0.457 0.119 294.1)
Decimal6047634
Display P3color(display-p3 0.361 0.278 0.573)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#5c4792 on white: 7.58:1
AA ✓ pass · AA-large · AAA
Aa
#5c4792 on black: 2.77:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2B5595
deuteranopia · #2F5390
tritanopia · #4F5665

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5c4792 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
#D9D4E8
#BEB3DA
#9E8EC8
#7E68B6
#6850A5
#5c4792
#45356E
#352A51
#211A32
Base = 700Lightest = 50 · #F6F5F9Darkest = 950 · #211A32
:root {
  --brand-50: #F6F5F9;
  --brand-100: #EEECF4;
  --brand-200: #D9D4E8;
  --brand-300: #BEB3DA;
  --brand-400: #9E8EC8;
  --brand-500: #7E68B6;
  --brand-600: #6850A5;
  --brand-700: #5c4792;
  --brand-800: #45356E;
  --brand-900: #352A51;
  --brand-950: #211A32;
  --brand: #5c4792;
  --brand-ink: #ffffff;
}

Colors that work with #5c4792

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#614B9A
Captions on the surface
Accent#8B8D3F
Second voice, not a rival
Dark variant#362A56
Hover, pressed, headers
Light variant#F0EEF7
Selected rows, tints
Dark surface#181424
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 #5c4792

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#7D9247
Analogous left#475792
Analogous right#814792
Split-complement 1#928147
Split-complement 2#579247
Triadic 1#925C47
Triadic 2#47925C
Tetradic#924757

RGB percentages

Red36.1%
Green27.8%
Blue57.3%

CMYK percentages

Cyan37.0%
Magenta51.4%
Yellow0.0%
Key (black)42.7%

Color previews

#5c4792 text on a black background

contrast 2.77:1

Card sample

#5c4792 text on a white background

contrast 7.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5c4792

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.

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

#5c4792, answered

What color is #5c4792?

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

What is the RGB value of #5c4792?

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

Is #5c4792 a light or a dark color?

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

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

White. It scores 7.58:1 against #5c4792, versus 2.77:1 for black — AAA at any size.

What is the complementary color of #5c4792?

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

What colors go well with #5c4792?

For interface work: #F6F5FA as the surface, #D0C8E4 for borders, #614B9A for secondary text, #8B8D3F as an accent and #362A56 for hover and pressed states. For a palette, the analogous pair #475792 and #814792 stays calm, while #7D9247 is the loudest partner.

What is #5c4792 in CMYK for printing?

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

Is #5c4792 warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #774792; nudged cooler, #454C94.

Work with #5c4792 in the Color Lab