Skip to content

#8317a9

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

RGB
131, 23, 169
HSL
284°, 76%, 38%
CMYK
23, 86, 0, 34
Luminance
0.0830

At a glance

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

Hex
#8317a9
Hue
284°
violet
Saturation
76%
electric
Lightness
38%
dark
Brightness
66%
HSV value
Perceived
37%
weighted brightness
Luminance
0.0830
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.89:1
Closest name
Dark Magenta
ΔE2000 5.9
Where it sits
Hue284° of 360°
Saturation76%
Lightness38%
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#8317a9
RGBrgb(131, 23, 169)
HSLhsl(284, 76%, 38%)
CMYKcmyk(23%, 86%, 0%, 34%)
LABlab(34.6 62.6 -53.9)
LCHlch(34.6 82.6 319.3)
OKLCHoklch(0.465 0.214 314.5)
Decimal8591273
Display P3color(display-p3 0.514 0.090 0.663)

Copy-ready code

/* CSS */
color: #8317a9;
background-color: #8317a9;
/* Tailwind (arbitrary) */
class="text-[#8317a9] bg-[#8317a9]"
/* SCSS */
$brand: #8317a9;
/* SwiftUI */
Color(red: 0.514, green: 0.090, blue: 0.663)
/* Android */
Color.parseColor("#8317a9")
/* Flutter */
Color(0xFF8317A9)
/* Python / OpenCV (BGR) */
(169, 23, 131)

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

Accessibility — WCAG contrast

Aa
#8317a9 on white: 7.89:1
AA ✓ pass · AA-large · AAA
Aa
#8317a9 on black: 2.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004CAD
deuteranopia · #0154A6
tritanopia · #7F3E64

Color scale — 50 to 950

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

#FAF3FC
#F4E7F9
#E8C8F4
#DB9CF2
#CA6BEB
#B83AE4
#A71DD7
#8317a9
#6F1490
#521268
#330C41
Base = 700Lightest = 50 · #FAF3FCDarkest = 950 · #330C41
:root {
  --brand-50: #FAF3FC;
  --brand-100: #F4E7F9;
  --brand-200: #E8C8F4;
  --brand-300: #DB9CF2;
  --brand-400: #CA6BEB;
  --brand-500: #B83AE4;
  --brand-600: #A71DD7;
  --brand-700: #8317a9;
  --brand-800: #6F1490;
  --brand-900: #521268;
  --brand-950: #330C41;
  --brand: #8317a9;
  --brand-ink: #ffffff;
}

Colors that work with #8317a9

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#864B9B
Captions on the surface
Accent#67B814
Second voice, not a rival
Dark variant#570F70
Hover, pressed, headers
Light variant#F7E9FC
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 #8317a9

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#3DA917
Analogous left#3A17A9
Analogous right#A91786
Split-complement 1#86A917
Split-complement 2#17A93A
Triadic 1#A98317
Triadic 2#17A983
Tetradic#A93A17

RGB percentages

Red51.4%
Green9.0%
Blue66.3%

CMYK percentages

Cyan22.5%
Magenta86.4%
Yellow0.0%
Key (black)33.7%

Color previews

#8317a9 text on a black background

contrast 2.66:1

Card sample

#8317a9 text on a white background

contrast 7.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8317a9;
Background color
Panel with #8317a9 background
background-color: #8317a9;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #8317a9;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(131, 23, 169, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(131, 23, 169, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8317a9;
background: linear-gradient(135deg, #8317a9, #A9176D);

Monochromatic scale

Palettes built from #8317a9

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.

#8317a9 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.

#8317a9, answered

What color is #8317a9?

#8317a9 is a dark electric violet, closest to Dark Magenta (ΔE2000 5.9). It sits at 284° on the hue wheel with 76% saturation and 38% lightness, which reads as cool.

What is the RGB value of #8317a9?

rgb(131, 23, 169) — 131 red, 23 green and 169 blue out of 255, or 51.4% / 9% / 66.3% by channel.

Is #8317a9 a light or a dark color?

It is a dark color. Relative luminance is 0.0830 and perceived brightness is 37%, so white text on it reaches 7.89:1.

Should I use black or white text on #8317a9?

White. It scores 7.89:1 against #8317a9, versus 2.66:1 for black — AAA at any size.

What is the complementary color of #8317a9?

#3DA917 sits directly opposite on the wheel. Softer options are the split-complements #86A917 and #17A93A, which give the same contrast with far less vibration.

What colors go well with #8317a9?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #864B9B for secondary text, #67B814 as an accent and #570F70 for hover and pressed states. For a palette, the analogous pair #3A17A9 and #A91786 stays calm, while #3DA917 is the loudest partner.

What is #8317a9 in CMYK for printing?

cmyk(23%, 86%, 0%, 34%). 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 #8317a9 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 #A91799; nudged cooler, #4D15AB.

Work with #8317a9 in the Color Lab