Skip to content

#6a5acd

a balanced, vivid blue · warm · “slateblue”

RGB
106, 90, 205
HSL
248°, 54%, 58%
CMYK
48, 56, 0, 20
Luminance
0.1478

Every format

HEX#6a5acd
RGBrgb(106, 90, 205)
HSLhsl(248, 54%, 58%)
CMYKcmyk(48%, 56%, 0%, 20%)
LABlab(45.3 36.0 -57.8)
LCHlch(45.3 68.1 302.0)
OKLCHoklch(0.544 0.171 285.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6a5acd on white: 5.31:1
AA ✓ pass · AA-large · AAA
Aa
#6a5acd on black: 3.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red41.6%
Green35.3%
Blue80.4%

CMYK percentages

Cyan48.3%
Magenta56.1%
Yellow0.0%
Key (black)19.6%

Color previews

#6a5acd text on a black background

contrast 3.96:1

Card sample

#6a5acd text on a white background

contrast 5.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(106, 90, 205, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(106, 90, 205, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6a5acd;
background: linear-gradient(135deg, #6a5acd, #B75ACD);

Monochromatic scale

Palettes built from #6a5acd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6a5acd in the Color Lab