Skip to content

#6540af

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

RGB
101, 64, 175
HSL
260°, 46%, 47%
CMYK
42, 63, 0, 31
Luminance
0.0953

Every format

HEX#6540af
RGBrgb(101, 64, 175)
HSLhsl(260, 46%, 47%)
CMYKcmyk(42%, 63%, 0%, 31%)
LABlab(37.0 41.5 -53.8)
LCHlch(37.0 67.9 307.6)
OKLCHoklch(0.474 0.169 294.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6540af on white: 7.23:1
AA ✓ pass · AA-large · AAA
Aa
#6540af on black: 2.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red39.6%
Green25.1%
Blue68.6%

CMYK percentages

Cyan42.3%
Magenta63.4%
Yellow0.0%
Key (black)31.4%

Color previews

#6540af text on a black background

contrast 2.91:1

Card sample

#6540af text on a white background

contrast 7.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6540af;
Background color
Panel with #6540af background
background-color: #6540af;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #6540af;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(101, 64, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(101, 64, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6540af;
background: linear-gradient(135deg, #6540af, #AF40AF);

Monochromatic scale

Palettes built from #6540af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6540af in the Color Lab