Skip to content

#640cdf

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

RGB
100, 12, 223
HSL
265°, 90%, 46%
CMYK
55, 95, 0, 13
Luminance
0.0830

Every format

HEX#640cdf
RGBrgb(100, 12, 223)
HSLhsl(265, 90%, 46%)
CMYKcmyk(55%, 95%, 0%, 13%)
LABlab(34.6 72.7 -85.7)
LCHlch(34.6 112.4 310.3)
OKLCHoklch(0.471 0.262 289.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#640cdf on white: 7.89:1
AA ✓ pass · AA-large · AAA
Aa
#640cdf on black: 2.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red39.2%
Green4.7%
Blue87.5%

CMYK percentages

Cyan55.2%
Magenta94.6%
Yellow0.0%
Key (black)12.5%

Color previews

#640cdf text on a black background

contrast 2.66:1

Card sample

#640cdf text on a white background

contrast 7.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #640cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #640cdf in the Color Lab