Skip to content

#6c3afd

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

RGB
108, 58, 253
HSL
255°, 98%, 61%
CMYK
57, 77, 0, 1
Luminance
0.1331

Every format

HEX#6c3afd
RGBrgb(108, 58, 253)
HSLhsl(255, 98%, 61%)
CMYKcmyk(57%, 77%, 0%, 1%)
LABlab(43.2 66.9 -88.4)
LCHlch(43.2 110.9 307.1)
OKLCHoklch(0.541 0.264 285.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6c3afd on white: 5.74:1
AA ✓ pass · AA-large · AAA
Aa
#6c3afd on black: 3.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red42.4%
Green22.7%
Blue99.2%

CMYK percentages

Cyan57.3%
Magenta77.1%
Yellow0.0%
Key (black)0.8%

Color previews

#6c3afd text on a black background

contrast 3.66:1

Card sample

#6c3afd text on a white background

contrast 5.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6c3afd;
Background color
Panel with #6c3afd background
background-color: #6c3afd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #6c3afd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(108, 58, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(108, 58, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6c3afd;
background: linear-gradient(135deg, #6c3afd, #EE3AFD);

Monochromatic scale

Palettes built from #6c3afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6c3afd in the Color Lab