Skip to content

#8958df

a balanced, vivid violet · cool · closest name: Medium Slate Blue

RGB
137, 88, 223
HSL
262°, 68%, 61%
CMYK
39, 61, 0, 13
Luminance
0.1763

At a glance

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

Hex
#8958df
Hue
262°
violet
Saturation
68%
vivid
Lightness
61%
balanced
Brightness
87%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1763
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
4.64:1
Closest name
Medium Slate Blue
ΔE2000 5.9
Where it sits
Hue262° of 360°
Saturation68%
Lightness61%
Temperature
Warm ← → Cool71% 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#8958df
RGBrgb(137, 88, 223)
HSLhsl(262, 68%, 61%)
CMYKcmyk(39%, 61%, 0%, 13%)
LABlab(49.0 48.8 -61.9)
LCHlch(49.0 78.9 308.3)
OKLCHoklch(0.582 0.197 296.5)
Decimal9001183
Display P3color(display-p3 0.537 0.345 0.875)

Copy-ready code

/* CSS */
color: #8958df;
background-color: #8958df;
/* Tailwind (arbitrary) */
class="text-[#8958df] bg-[#8958df]"
/* SCSS */
$brand: #8958df;
/* SwiftUI */
Color(red: 0.537, green: 0.345, blue: 0.875)
/* Android */
Color.parseColor("#8958df")
/* Flutter */
Color(0xFF8958DF)
/* Python / OpenCV (BGR) */
(223, 88, 137)

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 #8958df · 4.64:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.64:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.53:1
AA pass · AA large pass · AAA fail
Reading the other direction: #8958df as text scores 4.64:1 on white and 4.53:1 on black.

Accessibility — WCAG contrast

Aa
#8958df on white: 4.64:1
AA ✓ pass · AA-large · AAA
Aa
#8958df on black: 4.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0075E3
deuteranopia · #1573DC
tritanopia · #747693

Color scale — 50 to 950

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

#F6F3FB
#EDE8F8
#D8CAF2
#BDA1ED
#9B72E4
#8958df
#6427CD
#5321AB
#421A89
#331763
#200E3E
Base = 500Lightest = 50 · #F6F3FBDarkest = 950 · #200E3E
:root {
  --brand-50: #F6F3FB;
  --brand-100: #EDE8F8;
  --brand-200: #D8CAF2;
  --brand-300: #BDA1ED;
  --brand-400: #9B72E4;
  --brand-500: #8958df;
  --brand-600: #6427CD;
  --brand-700: #5321AB;
  --brand-800: #421A89;
  --brand-900: #331763;
  --brand-950: #200E3E;
  --brand: #8958df;
  --brand-ink: #ffffff;
}

Colors that work with #8958df

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#F7F4FA
Tinted page background
Border#D0C0ED
Hairlines and dividers
Muted text#684B9B
Captions on the surface
Accent#9FAF1D
Second voice, not a rival
Dark variant#34156B
Hover, pressed, headers
Light variant#F0EAFB
Selected rows, tints
Dark surface#1A1424
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 #8958df

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

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#AEDF58
Analogous left#586BDF
Analogous right#CD58DF
Split-complement 1#DFCD58
Split-complement 2#6BDF58
Triadic 1#DF8958
Triadic 2#58DF89
Tetradic#DF586B

RGB percentages

Red53.7%
Green34.5%
Blue87.5%

CMYK percentages

Cyan38.6%
Magenta60.5%
Yellow0.0%
Key (black)12.5%

Color previews

#8958df text on a black background

contrast 4.53:1

Card sample

#8958df text on a white background

contrast 4.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8958df;
Background color
Panel with #8958df background
background-color: #8958df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #8958df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(137, 88, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(137, 88, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8958df;
background: linear-gradient(135deg, #8958df, #DF58DB);

Monochromatic scale

Palettes built from #8958df

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.

#8958df 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.

#8958df, answered

What color is #8958df?

#8958df is a balanced vivid violet, closest to Medium Slate Blue (ΔE2000 5.9). It sits at 262° on the hue wheel with 68% saturation and 61% lightness, which reads as cool.

What is the RGB value of #8958df?

rgb(137, 88, 223) — 137 red, 88 green and 223 blue out of 255, or 53.7% / 34.5% / 87.5% by channel.

Is #8958df a light or a dark color?

It is a dark color. Relative luminance is 0.1763 and perceived brightness is 49%, so white text on it reaches 4.64:1.

Should I use black or white text on #8958df?

White. It scores 4.64:1 against #8958df, versus 4.53:1 for black — AA at any size.

What is the complementary color of #8958df?

#AEDF58 sits directly opposite on the wheel. Softer options are the split-complements #DFCD58 and #6BDF58, which give the same contrast with far less vibration.

What colors go well with #8958df?

For interface work: #F7F4FA as the surface, #D0C0ED for borders, #684B9B for secondary text, #9FAF1D as an accent and #34156B for hover and pressed states. For a palette, the analogous pair #586BDF and #CD58DF stays calm, while #AEDF58 is the loudest partner.

What is #8958df in CMYK for printing?

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

Is #8958df warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BB58DF; nudged cooler, #5657E1.

Work with #8958df in the Color Lab