Skip to content

#6a2fdf

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

RGB
106, 47, 223
HSL
260°, 73%, 53%
CMYK
53, 79, 0, 13
Luminance
0.1042

Every format

HEX#6a2fdf
RGBrgb(106, 47, 223)
HSLhsl(260, 73%, 53%)
CMYKcmyk(53%, 79%, 0%, 13%)
LABlab(38.6 63.4 -79.1)
LCHlch(38.6 101.4 308.7)
OKLCHoklch(0.500 0.242 289.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6a2fdf on white: 6.81:1
AA ✓ pass · AA-large · AAA
Aa
#6a2fdf on black: 3.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red41.6%
Green18.4%
Blue87.5%

CMYK percentages

Cyan52.5%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#6a2fdf text on a black background

contrast 3.08:1

Card sample

#6a2fdf text on a white background

contrast 6.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #6a2fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6a2fdf in the Color Lab