Skip to content

#7040ff

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

RGB
112, 64, 255
HSL
255°, 100%, 63%
CMYK
56, 75, 0, 0
Luminance
0.1433

Every format

HEX#7040ff
RGBrgb(112, 64, 255)
HSLhsl(255, 100%, 63%)
CMYKcmyk(56%, 75%, 0%, 0%)
LABlab(44.7 65.2 -87.1)
LCHlch(44.7 108.8 306.8)
OKLCHoklch(0.552 0.261 285.7)

Copy-ready code

/* CSS */
color: #7040ff;
background-color: #7040ff;
/* Tailwind (arbitrary) */
class="text-[#7040ff] bg-[#7040ff]"
/* SCSS */
$brand: #7040ff;
/* SwiftUI */
Color(red: 0.439, green: 0.251, blue: 1.000)
/* Android */
Color.parseColor("#7040ff")

Accessibility — WCAG contrast

Aa
#7040ff on white: 5.43:1
AA ✓ pass · AA-large · AAA
Aa
#7040ff on black: 3.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red43.9%
Green25.1%
Blue100.0%

CMYK percentages

Cyan56.1%
Magenta74.9%
Yellow0.0%
Key (black)0.0%

Color previews

#7040ff text on a black background

contrast 3.87:1

Card sample

#7040ff text on a white background

contrast 5.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7040ff;
Background color
Panel with #7040ff background
background-color: #7040ff;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7040ff;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(112, 64, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(112, 64, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7040ff;
background: linear-gradient(135deg, #7040ff, #EF40FF);

Monochromatic scale

Palettes built from #7040ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7040ff in the Color Lab