Skip to content

#652fba

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

RGB
101, 47, 186
HSL
263°, 60%, 46%
CMYK
46, 75, 0, 27
Luminance
0.0834

Every format

HEX#652fba
RGBrgb(101, 47, 186)
HSLhsl(263, 60%, 46%)
CMYKcmyk(46%, 75%, 0%, 27%)
LABlab(34.7 53.2 -64.0)
LCHlch(34.7 83.2 309.7)
OKLCHoklch(0.461 0.202 294.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#652fba on white: 7.87:1
AA ✓ pass · AA-large · AAA
Aa
#652fba on black: 2.67:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red39.6%
Green18.4%
Blue72.9%

CMYK percentages

Cyan45.7%
Magenta74.7%
Yellow0.0%
Key (black)27.1%

Color previews

#652fba text on a black background

contrast 2.67:1

Card sample

#652fba text on a white background

contrast 7.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #652fba;
Background color
Panel with #652fba background
background-color: #652fba;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #652fba;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(101, 47, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(101, 47, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #652fba;
background: linear-gradient(135deg, #652fba, #BA2FB2);

Monochromatic scale

Palettes built from #652fba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #652fba in the Color Lab