Skip to content

#d45ef1

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

RGB
212, 94, 241
HSL
288°, 84%, 66%
CMYK
12, 61, 0, 6
Luminance
0.2835

Every format

HEX#d45ef1
RGBrgb(212, 94, 241)
HSLhsl(288, 84%, 66%)
CMYKcmyk(12%, 61%, 0%, 6%)
LABlab(60.2 67.0 -53.6)
LCHlch(60.2 85.8 321.3)
OKLCHoklch(0.686 0.229 319.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d45ef1 on white: 3.15:1
AA ✗ fail · AA-large · AAA
Aa
#d45ef1 on black: 6.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green36.9%
Blue94.5%

CMYK percentages

Cyan12.0%
Magenta61.0%
Yellow0.0%
Key (black)5.5%

Color previews

#d45ef1 text on a black background

contrast 6.67:1

Card sample

#d45ef1 text on a white background

contrast 3.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(212, 94, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 94, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d45ef1;
background: linear-gradient(135deg, #d45ef1, #F15EAC);

Monochromatic scale

Palettes built from #d45ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d45ef1 in the Color Lab