Skip to content

#c27dfd

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

RGB
194, 125, 253
HSL
272°, 97%, 74%
CMYK
23, 51, 0, 1
Luminance
0.3323

Every format

HEX#c27dfd
RGBrgb(194, 125, 253)
HSLhsl(272, 97%, 74%)
CMYKcmyk(23%, 51%, 0%, 1%)
LABlab(64.3 49.9 -53.8)
LCHlch(64.3 73.4 312.9)
OKLCHoklch(0.713 0.189 307.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c27dfd on white: 2.75:1
AA ✗ fail · AA-large · AAA
Aa
#c27dfd on black: 7.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green49.0%
Blue99.2%

CMYK percentages

Cyan23.3%
Magenta50.6%
Yellow0.0%
Key (black)0.8%

Color previews

#c27dfd text on a black background

contrast 7.65:1

Card sample

#c27dfd text on a white background

contrast 2.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 125, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 125, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c27dfd;
background: linear-gradient(135deg, #c27dfd, #FD7DE3);

Monochromatic scale

Palettes built from #c27dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c27dfd in the Color Lab