Skip to content

#ca5df7

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

RGB
202, 93, 247
HSL
283°, 91%, 67%
CMYK
18, 62, 0, 3
Luminance
0.2710

Every format

HEX#ca5df7
RGBrgb(202, 93, 247)
HSLhsl(283, 91%, 67%)
CMYKcmyk(18%, 62%, 0%, 3%)
LABlab(59.1 66.3 -58.9)
LCHlch(59.1 88.6 318.4)
OKLCHoklch(0.676 0.232 314.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca5df7 on white: 3.27:1
AA ✗ fail · AA-large · AAA
Aa
#ca5df7 on black: 6.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green36.5%
Blue96.9%

CMYK percentages

Cyan18.2%
Magenta62.3%
Yellow0.0%
Key (black)3.1%

Color previews

#ca5df7 text on a black background

contrast 6.42:1

Card sample

#ca5df7 text on a white background

contrast 3.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ca5df7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca5df7 in the Color Lab