Skip to content

#8310ff

a balanced, electric violet · warm · closest name: blue

RGB
131, 16, 255
HSL
269°, 100%, 53%
CMYK
49, 94, 0, 0
Luminance
0.1242

Every format

HEX#8310ff
RGBrgb(131, 16, 255)
HSLhsl(269, 100%, 53%)
CMYKcmyk(49%, 94%, 0%, 0%)
LABlab(41.9 81.6 -91.7)
LCHlch(41.9 122.8 311.7)
OKLCHoklch(0.538 0.290 294.6)

Copy-ready code

/* CSS */
color: #8310ff;
background-color: #8310ff;
/* Tailwind (arbitrary) */
class="text-[#8310ff] bg-[#8310ff]"
/* SCSS */
$brand: #8310ff;
/* SwiftUI */
Color(red: 0.514, green: 0.063, blue: 1.000)
/* Android */
Color.parseColor("#8310ff")

Accessibility — WCAG contrast

Aa
#8310ff on white: 6.03:1
AA ✓ pass · AA-large · AAA
Aa
#8310ff on black: 3.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red51.4%
Green6.3%
Blue100.0%

CMYK percentages

Cyan48.6%
Magenta93.7%
Yellow0.0%
Key (black)0.0%

Color previews

#8310ff text on a black background

contrast 3.48:1

Card sample

#8310ff text on a white background

contrast 6.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8310ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8310ff in the Color Lab