Skip to content

#8038bc

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

RGB
128, 56, 188
HSL
273°, 54%, 48%
CMYK
32, 70, 0, 26
Luminance
0.1105

Every format

HEX#8038bc
RGBrgb(128, 56, 188)
HSLhsl(273, 54%, 48%)
CMYKcmyk(32%, 70%, 0%, 26%)
LABlab(39.7 54.4 -57.0)
LCHlch(39.7 78.8 313.7)
OKLCHoklch(0.504 0.198 305.2)

Copy-ready code

/* CSS */
color: #8038bc;
background-color: #8038bc;
/* Tailwind (arbitrary) */
class="text-[#8038bc] bg-[#8038bc]"
/* SCSS */
$brand: #8038bc;
/* SwiftUI */
Color(red: 0.502, green: 0.220, blue: 0.737)
/* Android */
Color.parseColor("#8038bc")

Accessibility — WCAG contrast

Aa
#8038bc on white: 6.54:1
AA ✓ pass · AA-large · AAA
Aa
#8038bc on black: 3.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red50.2%
Green22.0%
Blue73.7%

CMYK percentages

Cyan31.9%
Magenta70.2%
Yellow0.0%
Key (black)26.3%

Color previews

#8038bc text on a black background

contrast 3.21:1

Card sample

#8038bc text on a white background

contrast 6.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8038bc;
Background color
Panel with #8038bc background
background-color: #8038bc;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(128, 56, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 56, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8038bc;
background: linear-gradient(135deg, #8038bc, #BC38A0);

Monochromatic scale

Palettes built from #8038bc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8038bc in the Color Lab