Skip to content

#640fdf

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

RGB
100, 15, 223
HSL
265°, 87%, 47%
CMYK
55, 93, 0, 13
Luminance
0.0838

Every format

HEX#640fdf
RGBrgb(100, 15, 223)
HSLhsl(265, 87%, 47%)
CMYKcmyk(55%, 93%, 0%, 13%)
LABlab(34.8 72.2 -85.5)
LCHlch(34.8 111.9 310.2)
OKLCHoklch(0.472 0.261 289.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#640fdf on white: 7.85:1
AA ✓ pass · AA-large · AAA
Aa
#640fdf on black: 2.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red39.2%
Green5.9%
Blue87.5%

CMYK percentages

Cyan55.2%
Magenta93.3%
Yellow0.0%
Key (black)12.5%

Color previews

#640fdf text on a black background

contrast 2.68:1

Card sample

#640fdf text on a white background

contrast 7.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #640fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #640fdf in the Color Lab