Skip to content

#9b58df

a balanced, vivid violet · cool · closest name: Medium Purple

RGB
155, 88, 223
HSL
270°, 68%, 61%
CMYK
31, 61, 0, 13
Luminance
0.1928

At a glance

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

Hex
#9b58df
Hue
270°
violet
Saturation
68%
vivid
Lightness
61%
balanced
Brightness
87%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1928
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
4.86:1
Closest name
Medium Purple
ΔE2000 6.5
Where it sits
Hue270° of 360°
Saturation68%
Lightness61%
Temperature
Warm ← → Cool67% 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#9b58df
RGBrgb(155, 88, 223)
HSLhsl(270, 68%, 61%)
CMYKcmyk(31%, 61%, 0%, 13%)
LABlab(51.0 52.8 -58.6)
LCHlch(51.0 78.9 312.0)
OKLCHoklch(0.600 0.200 303.8)
Decimal10180831
Display P3color(display-p3 0.608 0.345 0.875)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#9b58df on white: 4.33:1
AA ✗ fail · AA-large · AAA
Aa
#9b58df on black: 4.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0578E3
deuteranopia · #3579DC
tritanopia · #8E7493

Color scale — 50 to 950

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

#F7F3FB
#F0E8F8
#DECAF2
#C7A1ED
#AA72E4
#9b58df
#7A27CD
#6621AB
#511A89
#3D1763
#260E3E
Base = 500Lightest = 50 · #F7F3FBDarkest = 950 · #260E3E
:root {
  --brand-50: #F7F3FB;
  --brand-100: #F0E8F8;
  --brand-200: #DECAF2;
  --brand-300: #C7A1ED;
  --brand-400: #AA72E4;
  --brand-500: #9b58df;
  --brand-600: #7A27CD;
  --brand-700: #6621AB;
  --brand-800: #511A89;
  --brand-900: #3D1763;
  --brand-950: #260E3E;
  --brand: #9b58df;
  --brand-ink: #000000;
}

Colors that work with #9b58df

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

Text on it#000000
Black wins here
Surface#F7F4FA
Tinted page background
Border#D6C0ED
Hairlines and dividers
Muted text#724B9B
Captions on the surface
Accent#8BAF1D
Second voice, not a rival
Dark variant#3F156B
Hover, pressed, headers
Light variant#F2EAFB
Selected rows, tints
Dark surface#1C1424
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 #9b58df

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

Works well for
  • Headings from 24px up 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
  • Small text on white — under 4.5:1
  • 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#9CDF58
Analogous left#5859DF
Analogous right#DF58DF
Split-complement 1#DFDF58
Split-complement 2#59DF58
Triadic 1#DF9B58
Triadic 2#58DF9B
Tetradic#DF5859

RGB percentages

Red60.8%
Green34.5%
Blue87.5%

CMYK percentages

Cyan30.5%
Magenta60.5%
Yellow0.0%
Key (black)12.5%

Color previews

#9b58df text on a black background

contrast 4.86:1

Card sample

#9b58df text on a white background

contrast 4.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #9b58df;
Background color
Panel with #9b58df background
background-color: #9b58df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #9b58df;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #9b58df

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.

#9b58df 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.

#9b58df, answered

What color is #9b58df?

#9b58df is a balanced vivid violet, closest to Medium Purple (ΔE2000 6.5). It sits at 270° on the hue wheel with 68% saturation and 61% lightness, which reads as cool.

What is the RGB value of #9b58df?

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

Is #9b58df a light or a dark color?

It is a mid-tone. Relative luminance is 0.1928 and perceived brightness is 52%, so black text on it reaches 4.86:1.

Should I use black or white text on #9b58df?

Black. It scores 4.86:1 against #9b58df, versus 4.33:1 for white — AA at any size.

What is the complementary color of #9b58df?

#9CDF58 sits directly opposite on the wheel. Softer options are the split-complements #DFDF58 and #59DF58, which give the same contrast with far less vibration.

What colors go well with #9b58df?

For interface work: #F7F4FA as the surface, #D6C0ED for borders, #724B9B for secondary text, #8BAF1D as an accent and #3F156B for hover and pressed states. For a palette, the analogous pair #5859DF and #DF58DF stays calm, while #9CDF58 is the loudest partner.

What is #9b58df in CMYK for printing?

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

Is #9b58df warm or cool?

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

Work with #9b58df in the Color Lab