Skip to content

#8c2fba

a balanced, vivid violet · warm · closest name: indigo

RGB
140, 47, 186
HSL
280°, 60%, 46%
CMYK
25, 75, 0, 27
Luminance
0.1115

Every format

HEX#8c2fba
RGBrgb(140, 47, 186)
HSLhsl(280, 60%, 46%)
CMYKcmyk(25%, 75%, 0%, 27%)
LABlab(39.8 60.1 -55.4)
LCHlch(39.8 81.8 317.3)
OKLCHoklch(0.508 0.210 311.7)

Copy-ready code

/* CSS */
color: #8c2fba;
background-color: #8c2fba;
/* Tailwind (arbitrary) */
class="text-[#8c2fba] bg-[#8c2fba]"
/* SCSS */
$brand: #8c2fba;
/* SwiftUI */
Color(red: 0.549, green: 0.184, blue: 0.729)
/* Android */
Color.parseColor("#8c2fba")

Accessibility — WCAG contrast

Aa
#8c2fba on white: 6.50:1
AA ✓ pass · AA-large · AAA
Aa
#8c2fba on black: 3.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.9%
Green18.4%
Blue72.9%

CMYK percentages

Cyan24.7%
Magenta74.7%
Yellow0.0%
Key (black)27.1%

Color previews

#8c2fba text on a black background

contrast 3.23:1

Card sample

#8c2fba text on a white background

contrast 6.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8c2fba;
Background color
Panel with #8c2fba background
background-color: #8c2fba;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(140, 47, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 47, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c2fba;
background: linear-gradient(135deg, #8c2fba, #BA2F8B);

Monochromatic scale

Palettes built from #8c2fba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8c2fba in the Color Lab