Skip to content

#d766ff

a light, electric violet · warm · closest name: violet

RGB
215, 102, 255
HSL
284°, 100%, 70%
CMYK
16, 60, 0, 0
Luminance
0.3117

Every format

HEX#d766ff
RGBrgb(215, 102, 255)
HSLhsl(284, 100%, 70%)
CMYKcmyk(16%, 60%, 0%, 0%)
LABlab(62.6 66.8 -57.5)
LCHlch(62.6 88.1 319.3)
OKLCHoklch(0.707 0.233 316.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d766ff on white: 2.90:1
AA ✗ fail · AA-large · AAA
Aa
#d766ff on black: 7.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red84.3%
Green40.0%
Blue100.0%

CMYK percentages

Cyan15.7%
Magenta60.0%
Yellow0.0%
Key (black)0.0%

Color previews

#d766ff text on a black background

contrast 7.23:1

Card sample

#d766ff text on a white background

contrast 2.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d766ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d766ff in the Color Lab