Skip to content

#6a5abc

a balanced, soft blue · warm · closest name: slateblue

RGB
106, 90, 188
HSL
250°, 42%, 55%
CMYK
44, 52, 0, 26
Luminance
0.1401

Every format

HEX#6a5abc
RGBrgb(106, 90, 188)
HSLhsl(250, 42%, 55%)
CMYKcmyk(44%, 52%, 0%, 26%)
LABlab(44.2 31.0 -49.7)
LCHlch(44.2 58.6 302.0)
OKLCHoklch(0.532 0.148 287.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6a5abc on white: 5.52:1
AA ✓ pass · AA-large · AAA
Aa
#6a5abc on black: 3.80:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red41.6%
Green35.3%
Blue73.7%

CMYK percentages

Cyan43.6%
Magenta52.1%
Yellow0.0%
Key (black)26.3%

Color previews

#6a5abc text on a black background

contrast 3.80:1

Card sample

#6a5abc text on a white background

contrast 5.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #6a5abc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6a5abc in the Color Lab