Skip to content

#7f4abc

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

RGB
127, 74, 188
HSL
268°, 46%, 51%
CMYK
32, 61, 0, 26
Luminance
0.1304

Every format

HEX#7f4abc
RGBrgb(127, 74, 188)
HSLhsl(268, 46%, 51%)
CMYKcmyk(32%, 61%, 0%, 26%)
LABlab(42.8 45.2 -51.9)
LCHlch(42.8 68.8 311.1)
OKLCHoklch(0.526 0.174 302.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7f4abc on white: 5.82:1
AA ✓ pass · AA-large · AAA
Aa
#7f4abc on black: 3.61:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red49.8%
Green29.0%
Blue73.7%

CMYK percentages

Cyan32.4%
Magenta60.6%
Yellow0.0%
Key (black)26.3%

Color previews

#7f4abc text on a black background

contrast 3.61:1

Card sample

#7f4abc text on a white background

contrast 5.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7f4abc;
Background color
Panel with #7f4abc background
background-color: #7f4abc;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(127, 74, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 74, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f4abc;
background: linear-gradient(135deg, #7f4abc, #BC4AAD);

Monochromatic scale

Palettes built from #7f4abc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7f4abc in the Color Lab