Skip to content

#d38cf2

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

RGB
211, 140, 242
HSL
282°, 80%, 75%
CMYK
13, 42, 0, 5
Luminance
0.3902

Every format

HEX#d38cf2
RGBrgb(211, 140, 242)
HSLhsl(282, 80%, 75%)
CMYKcmyk(13%, 42%, 0%, 5%)
LABlab(68.8 44.3 -40.7)
LCHlch(68.8 60.1 317.4)
OKLCHoklch(0.749 0.159 315.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.7%
Green54.9%
Blue94.9%

CMYK percentages

Cyan12.8%
Magenta42.1%
Yellow0.0%
Key (black)5.1%

Color previews

#d38cf2 text on a black background

contrast 8.80:1

Card sample

#d38cf2 text on a white background

contrast 2.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(211, 140, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(211, 140, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d38cf2;
background: linear-gradient(135deg, #d38cf2, #F28CCD);

Monochromatic scale

Palettes built from #d38cf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d38cf2 in the Color Lab