Skip to content

#7c2def

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

RGB
124, 45, 239
HSL
264°, 86%, 56%
CMYK
48, 81, 0, 6
Luminance
0.1239

Every format

HEX#7c2def
RGBrgb(124, 45, 239)
HSLhsl(264, 86%, 56%)
CMYKcmyk(48%, 81%, 0%, 6%)
LABlab(41.8 70.3 -82.8)
LCHlch(41.8 108.6 310.3)
OKLCHoklch(0.531 0.260 293.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7c2def on white: 6.04:1
AA ✓ pass · AA-large · AAA
Aa
#7c2def on black: 3.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red48.6%
Green17.6%
Blue93.7%

CMYK percentages

Cyan48.1%
Magenta81.2%
Yellow0.0%
Key (black)6.3%

Color previews

#7c2def text on a black background

contrast 3.48:1

Card sample

#7c2def text on a white background

contrast 6.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7c2def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7c2def in the Color Lab