Skip to content

#7c1fdf

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

RGB
124, 31, 223
HSL
269°, 76%, 50%
CMYK
44, 86, 0, 13
Luminance
0.1059

Every format

HEX#7c1fdf
RGBrgb(124, 31, 223)
HSLhsl(269, 76%, 50%)
CMYKcmyk(44%, 86%, 0%, 13%)
LABlab(38.9 71.0 -78.5)
LCHlch(38.9 105.8 312.1)
OKLCHoklch(0.506 0.254 297.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7c1fdf on white: 6.73:1
AA ✓ pass · AA-large · AAA
Aa
#7c1fdf on black: 3.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red48.6%
Green12.2%
Blue87.5%

CMYK percentages

Cyan44.4%
Magenta86.1%
Yellow0.0%
Key (black)12.5%

Color previews

#7c1fdf text on a black background

contrast 3.12:1

Card sample

#7c1fdf text on a white background

contrast 6.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(124, 31, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(124, 31, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7c1fdf;
background: linear-gradient(135deg, #7c1fdf, #DF1FC2);

Monochromatic scale

Palettes built from #7c1fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7c1fdf in the Color Lab