Skip to content

#640afd

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

RGB
100, 10, 253
HSL
262°, 98%, 52%
CMYK
61, 96, 0, 1
Luminance
0.1002

Every format

HEX#640afd
RGBrgb(100, 10, 253)
HSLhsl(262, 98%, 52%)
CMYKcmyk(61%, 96%, 0%, 1%)
LABlab(37.9 79.8 -97.3)
LCHlch(37.9 125.8 309.3)
OKLCHoklch(0.502 0.290 284.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#640afd on white: 6.99:1
AA ✓ pass · AA-large · AAA
Aa
#640afd on black: 3.00:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red39.2%
Green3.9%
Blue99.2%

CMYK percentages

Cyan60.5%
Magenta96.0%
Yellow0.0%
Key (black)0.8%

Color previews

#640afd text on a black background

contrast 3.00:1

Card sample

#640afd text on a white background

contrast 6.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #640afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #640afd in the Color Lab