Skip to content

#663388

a dark, vivid violet · warm · closest name: purple

RGB
102, 51, 136
HSL
276°, 46%, 37%
CMYK
25, 63, 0, 47
Luminance
0.0697

Every format

HEX#663388
RGBrgb(102, 51, 136)
HSLhsl(276, 46%, 37%)
CMYKcmyk(25%, 63%, 0%, 47%)
LABlab(31.7 38.7 -38.6)
LCHlch(31.7 54.6 315.1)
OKLCHoklch(0.428 0.141 309.4)

Copy-ready code

/* CSS */
color: #663388;
background-color: #663388;
/* Tailwind (arbitrary) */
class="text-[#663388] bg-[#663388]"
/* SCSS */
$brand: #663388;
/* SwiftUI */
Color(red: 0.400, green: 0.200, blue: 0.533)
/* Android */
Color.parseColor("#663388")

Accessibility — WCAG contrast

Aa
#663388 on white: 8.77:1
AA ✓ pass · AA-large · AAA
Aa
#663388 on black: 2.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red40.0%
Green20.0%
Blue53.3%

CMYK percentages

Cyan25.0%
Magenta62.5%
Yellow0.0%
Key (black)46.7%

Color previews

#663388 text on a black background

contrast 2.39:1

Card sample

#663388 text on a white background

contrast 8.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(102, 51, 136, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(102, 51, 136, 0.45);
Border & gradient
Gradient panel
border: 3px solid #663388;
background: linear-gradient(135deg, #663388, #883371);

Monochromatic scale

Palettes built from #663388

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #663388 in the Color Lab