Skip to content

#8317ff

a balanced, electric violet · cool · closest name: Blue Violet

RGB
131, 23, 255
HSL
268°, 100%, 55%
CMYK
49, 91, 0, 0
Luminance
0.1266

At a glance

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

Hex
#8317ff
Hue
268°
violet
Saturation
100%
electric
Lightness
55%
balanced
Brightness
100%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1266
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.95:1
Closest name
Blue Violet
ΔE2000 3.6
Where it sits
Hue268° of 360°
Saturation100%
Lightness55%
Temperature
Warm ← → Cool68% 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#8317ff
RGBrgb(131, 23, 255)
HSLhsl(268, 100%, 55%)
CMYKcmyk(49%, 91%, 0%, 0%)
LABlab(42.2 80.5 -91.1)
LCHlch(42.2 121.6 311.5)
OKLCHoklch(0.540 0.287 294.4)
Decimal8591359
Display P3color(display-p3 0.514 0.090 1.000)

Copy-ready code

/* CSS */
color: #8317ff;
background-color: #8317ff;
/* Tailwind (arbitrary) */
class="text-[#8317ff] bg-[#8317ff]"
/* SCSS */
$brand: #8317ff;
/* SwiftUI */
Color(red: 0.514, green: 0.090, blue: 1.000)
/* Android */
Color.parseColor("#8317ff")
/* Flutter */
Color(0xFF8317FF)
/* Python / OpenCV (BGR) */
(255, 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 #8317ff · 5.95:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.95:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.53:1
AA fail · AA large pass · AAA fail
Reading the other direction: #8317ff as text scores 5.95:1 on white and 3.53:1 on black.

Accessibility — WCAG contrast

Aa
#8317ff on white: 5.95:1
AA ✓ pass · AA-large · AAA
Aa
#8317ff on black: 3.53:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0066FF
deuteranopia · #0060FB
tritanopia · #5B6897

Color scale — 50 to 950

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

#F7F1FE
#EFE3FC
#DCC0FC
#C38FFF
#A557FF
#8317ff
#7200F5
#5F00CC
#4C00A3
#390576
#240349
Base = 500Lightest = 50 · #F7F1FEDarkest = 950 · #240349
:root {
  --brand-50: #F7F1FE;
  --brand-100: #EFE3FC;
  --brand-200: #DCC0FC;
  --brand-300: #C38FFF;
  --brand-400: #A557FF;
  --brand-500: #8317ff;
  --brand-600: #7200F5;
  --brand-700: #5F00CC;
  --brand-800: #4C00A3;
  --brand-900: #390576;
  --brand-950: #240349;
  --brand: #8317ff;
  --brand-ink: #ffffff;
}

Colors that work with #8317ff

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#D5C0ED
Hairlines and dividers
Muted text#704B9B
Captions on the surface
Accent#A0CC00
Second voice, not a rival
Dark variant#3B0080
Hover, pressed, headers
Light variant#F1E5FF
Selected rows, tints
Dark surface#1B1424
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 #8317ff

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
  • 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#93FF17
Analogous left#171FFF
Analogous right#F717FF
Split-complement 1#FFF717
Split-complement 2#1FFF17
Triadic 1#FF8317
Triadic 2#17FF83
Tetradic#FF171F

RGB percentages

Red51.4%
Green9.0%
Blue100.0%

CMYK percentages

Cyan48.6%
Magenta91.0%
Yellow0.0%
Key (black)0.0%

Color previews

#8317ff text on a black background

contrast 3.53:1

Card sample

#8317ff text on a white background

contrast 5.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8317ff

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.

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

#8317ff, answered

What color is #8317ff?

#8317ff is a balanced electric violet, closest to Blue Violet (ΔE2000 3.6). It sits at 268° on the hue wheel with 100% saturation and 55% lightness, which reads as cool.

What is the RGB value of #8317ff?

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

Is #8317ff a light or a dark color?

It is a dark color. Relative luminance is 0.1266 and perceived brightness is 44%, so white text on it reaches 5.95:1.

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

White. It scores 5.95:1 against #8317ff, versus 3.53:1 for black — AA at any size.

What is the complementary color of #8317ff?

#93FF17 sits directly opposite on the wheel. Softer options are the split-complements #FFF717 and #1FFF17, which give the same contrast with far less vibration.

What colors go well with #8317ff?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #704B9B for secondary text, #A0CC00 as an accent and #3B0080 for hover and pressed states. For a palette, the analogous pair #171FFF and #F717FF stays calm, while #93FF17 is the loudest partner.

What is #8317ff in CMYK for printing?

cmyk(49%, 91%, 0%, 0%). 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 #8317ff warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D817FF; nudged cooler, #2E17FF.

Work with #8317ff in the Color Lab