Skip to content

#ca5dfd

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

RGB
202, 93, 253
HSL
281°, 98%, 68%
CMYK
20, 63, 0, 1
Luminance
0.2748

Every format

HEX#ca5dfd
RGBrgb(202, 93, 253)
HSLhsl(281, 98%, 68%)
CMYKcmyk(20%, 63%, 0%, 1%)
LABlab(59.4 67.5 -61.6)
LCHlch(59.4 91.4 317.6)
OKLCHoklch(0.679 0.238 313.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca5dfd on white: 3.23:1
AA ✗ fail · AA-large · AAA
Aa
#ca5dfd on black: 6.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green36.5%
Blue99.2%

CMYK percentages

Cyan20.2%
Magenta63.2%
Yellow0.0%
Key (black)0.8%

Color previews

#ca5dfd text on a black background

contrast 6.50:1

Card sample

#ca5dfd text on a white background

contrast 3.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ca5dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca5dfd in the Color Lab