Skip to content

#640df3

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

RGB
100, 13, 243
HSL
263°, 91%, 50%
CMYK
59, 95, 0, 5
Luminance
0.0947

Every format

HEX#640df3
RGBrgb(100, 13, 243)
HSLhsl(263, 91%, 50%)
CMYKcmyk(59%, 95%, 0%, 5%)
LABlab(36.9 77.1 -93.3)
LCHlch(36.9 121.1 309.6)
OKLCHoklch(0.492 0.280 286.2)

Copy-ready code

/* CSS */
color: #640df3;
background-color: #640df3;
/* Tailwind (arbitrary) */
class="text-[#640df3] bg-[#640df3]"
/* SCSS */
$brand: #640df3;
/* SwiftUI */
Color(red: 0.392, green: 0.051, blue: 0.953)
/* Android */
Color.parseColor("#640df3")

Accessibility — WCAG contrast

Aa
#640df3 on white: 7.26:1
AA ✓ pass · AA-large · AAA
Aa
#640df3 on black: 2.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red39.2%
Green5.1%
Blue95.3%

CMYK percentages

Cyan58.8%
Magenta94.7%
Yellow0.0%
Key (black)4.7%

Color previews

#640df3 text on a black background

contrast 2.89:1

Card sample

#640df3 text on a white background

contrast 7.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #640df3;
Background color
Panel with #640df3 background
background-color: #640df3;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #640df3;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(100, 13, 243, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 13, 243, 0.45);
Border & gradient
Gradient panel
border: 3px solid #640df3;
background: linear-gradient(135deg, #640df3, #F30DE9);

Monochromatic scale

Palettes built from #640df3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #640df3 in the Color Lab