Skip to content

#6f40df

a balanced, vivid violet · warm · closest name: slateblue

RGB
111, 64, 223
HSL
258°, 71%, 56%
CMYK
50, 71, 0, 13
Luminance
0.1237

Every format

HEX#6f40df
RGBrgb(111, 64, 223)
HSLhsl(258, 71%, 56%)
CMYKcmyk(50%, 71%, 0%, 13%)
LABlab(41.8 56.5 -73.8)
LCHlch(41.8 92.9 307.4)
OKLCHoklch(0.523 0.225 289.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6f40df on white: 6.04:1
AA ✓ pass · AA-large · AAA
Aa
#6f40df on black: 3.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red43.5%
Green25.1%
Blue87.5%

CMYK percentages

Cyan50.2%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#6f40df text on a black background

contrast 3.47:1

Card sample

#6f40df text on a white background

contrast 6.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(111, 64, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(111, 64, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6f40df;
background: linear-gradient(135deg, #6f40df, #D940DF);

Monochromatic scale

Palettes built from #6f40df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6f40df in the Color Lab