Skip to content

#7948ba

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

RGB
121, 72, 186
HSL
266°, 45%, 51%
CMYK
35, 61, 0, 27
Luminance
0.1224

Every format

HEX#7948ba
RGBrgb(121, 72, 186)
HSLhsl(266, 45%, 51%)
CMYKcmyk(35%, 61%, 0%, 27%)
LABlab(41.6 44.4 -52.7)
LCHlch(41.6 68.9 310.1)
OKLCHoklch(0.516 0.173 300.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7948ba on white: 6.09:1
AA ✓ pass · AA-large · AAA
Aa
#7948ba on black: 3.45:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.5%
Green28.2%
Blue72.9%

CMYK percentages

Cyan34.9%
Magenta61.3%
Yellow0.0%
Key (black)27.1%

Color previews

#7948ba text on a black background

contrast 3.45:1

Card sample

#7948ba text on a white background

contrast 6.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7948ba;
Background color
Panel with #7948ba background
background-color: #7948ba;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(121, 72, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 72, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7948ba;
background: linear-gradient(135deg, #7948ba, #BA48AF);

Monochromatic scale

Palettes built from #7948ba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7948ba in the Color Lab