Skip to content

#6845bc

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

RGB
104, 69, 188
HSL
258°, 47%, 50%
CMYK
45, 63, 0, 26
Luminance
0.1083

Every format

HEX#6845bc
RGBrgb(104, 69, 188)
HSLhsl(258, 47%, 50%)
CMYKcmyk(45%, 63%, 0%, 26%)
LABlab(39.3 42.9 -57.7)
LCHlch(39.3 71.9 306.6)
OKLCHoklch(0.495 0.178 292.2)

Copy-ready code

/* CSS */
color: #6845bc;
background-color: #6845bc;
/* Tailwind (arbitrary) */
class="text-[#6845bc] bg-[#6845bc]"
/* SCSS */
$brand: #6845bc;
/* SwiftUI */
Color(red: 0.408, green: 0.271, blue: 0.737)
/* Android */
Color.parseColor("#6845bc")

Accessibility — WCAG contrast

Aa
#6845bc on white: 6.63:1
AA ✓ pass · AA-large · AAA
Aa
#6845bc on black: 3.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red40.8%
Green27.1%
Blue73.7%

CMYK percentages

Cyan44.7%
Magenta63.3%
Yellow0.0%
Key (black)26.3%

Color previews

#6845bc text on a black background

contrast 3.17:1

Card sample

#6845bc text on a white background

contrast 6.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6845bc;
Background color
Panel with #6845bc background
background-color: #6845bc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #6845bc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(104, 69, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(104, 69, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6845bc;
background: linear-gradient(135deg, #6845bc, #B745BC);

Monochromatic scale

Palettes built from #6845bc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6845bc in the Color Lab