Skip to content

#6f2afd

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

RGB
111, 42, 253
HSL
260°, 98%, 58%
CMYK
56, 83, 0, 1
Luminance
0.1213

Every format

HEX#6f2afd
RGBrgb(111, 42, 253)
HSLhsl(260, 98%, 58%)
CMYKcmyk(56%, 83%, 0%, 1%)
LABlab(41.4 73.3 -91.4)
LCHlch(41.4 117.2 308.7)
OKLCHoklch(0.529 0.276 287.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6f2afd on white: 6.13:1
AA ✓ pass · AA-large · AAA
Aa
#6f2afd on black: 3.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red43.5%
Green16.5%
Blue99.2%

CMYK percentages

Cyan56.1%
Magenta83.4%
Yellow0.0%
Key (black)0.8%

Color previews

#6f2afd text on a black background

contrast 3.43:1

Card sample

#6f2afd text on a white background

contrast 6.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(111, 42, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(111, 42, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6f2afd;
background: linear-gradient(135deg, #6f2afd, #FC2AFD);

Monochromatic scale

Palettes built from #6f2afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6f2afd in the Color Lab