Skip to content

#8917b3

a dark, electric violet · cool · closest name: Dark Violet

RGB
137, 23, 179
HSL
284°, 77%, 40%
CMYK
24, 87, 0, 30
Luminance
0.0919

At a glance

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

Hex
#8917b3
Hue
284°
violet
Saturation
77%
electric
Lightness
40%
dark
Brightness
70%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0919
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.40:1
Closest name
Dark Violet
ΔE2000 4.4
Where it sits
Hue284° of 360°
Saturation77%
Lightness40%
Temperature
Warm ← → Cool59% 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#8917b3
RGBrgb(137, 23, 179)
HSLhsl(284, 77%, 40%)
CMYKcmyk(24%, 87%, 0%, 30%)
LABlab(36.3 65.5 -57.0)
LCHlch(36.3 86.8 319.0)
OKLCHoklch(0.481 0.224 313.8)
Decimal8984499
Display P3color(display-p3 0.537 0.090 0.702)

Copy-ready code

/* CSS */
color: #8917b3;
background-color: #8917b3;
/* Tailwind (arbitrary) */
class="text-[#8917b3] bg-[#8917b3]"
/* SCSS */
$brand: #8917b3;
/* SwiftUI */
Color(red: 0.537, green: 0.090, blue: 0.702)
/* Android */
Color.parseColor("#8917b3")
/* Flutter */
Color(0xFF8917B3)
/* Python / OpenCV (BGR) */
(179, 23, 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 #8917b3 · 7.40:1
Use #ffffffAAA at every size.
Aa
White text · 7.40:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.84:1
AA fail · AA large fail · AAA fail
Reading the other direction: #8917b3 as text scores 7.40:1 on white and 2.84:1 on black.

Accessibility — WCAG contrast

Aa
#8917b3 on white: 7.40:1
AA ✓ pass · AA-large · AAA
Aa
#8917b3 on black: 2.84:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0050B7
deuteranopia · #0058B0
tritanopia · #85426A

Color scale — 50 to 950

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

#F9F3FC
#F4E6F9
#E8C7F4
#DB9CF2
#C96AEC
#B738E5
#A61CD9
#8917b3
#6F1391
#511269
#330B41
Base = 700Lightest = 50 · #F9F3FCDarkest = 950 · #330B41
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F4E6F9;
  --brand-200: #E8C7F4;
  --brand-300: #DB9CF2;
  --brand-400: #C96AEC;
  --brand-500: #B738E5;
  --brand-600: #A61CD9;
  --brand-700: #8917b3;
  --brand-800: #6F1391;
  --brand-900: #511269;
  --brand-950: #330B41;
  --brand: #8917b3;
  --brand-ink: #ffffff;
}

Colors that work with #8917b3

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#F9F4FA
Tinted page background
Border#E1C0ED
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#69B913
Second voice, not a rival
Dark variant#560F71
Hover, pressed, headers
Light variant#F7E8FC
Selected rows, tints
Dark surface#201424
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 #8917b3

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#41B317
Analogous left#3B17B3
Analogous right#B3178F
Split-complement 1#8FB317
Split-complement 2#17B33B
Triadic 1#B38917
Triadic 2#17B389
Tetradic#B33B17

RGB percentages

Red53.7%
Green9.0%
Blue70.2%

CMYK percentages

Cyan23.5%
Magenta87.2%
Yellow0.0%
Key (black)29.8%

Color previews

#8917b3 text on a black background

contrast 2.84:1

Card sample

#8917b3 text on a white background

contrast 7.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8917b3;
Background color
Panel with #8917b3 background
background-color: #8917b3;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #8917b3;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(137, 23, 179, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(137, 23, 179, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8917b3;
background: linear-gradient(135deg, #8917b3, #B31775);

Monochromatic scale

Palettes built from #8917b3

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.

#8917b3 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#8917b3, answered

What color is #8917b3?

#8917b3 is a dark electric violet, closest to Dark Violet (ΔE2000 4.4). It sits at 284° on the hue wheel with 77% saturation and 40% lightness, which reads as cool.

What is the RGB value of #8917b3?

rgb(137, 23, 179) — 137 red, 23 green and 179 blue out of 255, or 53.7% / 9% / 70.2% by channel.

Is #8917b3 a light or a dark color?

It is a dark color. Relative luminance is 0.0919 and perceived brightness is 38%, so white text on it reaches 7.40:1.

Should I use black or white text on #8917b3?

White. It scores 7.40:1 against #8917b3, versus 2.84:1 for black — AAA at any size.

What is the complementary color of #8917b3?

#41B317 sits directly opposite on the wheel. Softer options are the split-complements #8FB317 and #17B33B, which give the same contrast with far less vibration.

What colors go well with #8917b3?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #854B9B for secondary text, #69B913 as an accent and #560F71 for hover and pressed states. For a palette, the analogous pair #3B17B3 and #B3178F stays calm, while #41B317 is the loudest partner.

What is #8917b3 in CMYK for printing?

cmyk(24%, 87%, 0%, 30%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #8917b3 warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B317A4; nudged cooler, #4F15B5.

Work with #8917b3 in the Color Lab