Skip to content

#ca5df8

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

RGB
202, 93, 248
HSL
282°, 92%, 67%
CMYK
19, 63, 0, 3
Luminance
0.2716

Every format

HEX#ca5df8
RGBrgb(202, 93, 248)
HSLhsl(282, 92%, 67%)
CMYKcmyk(19%, 63%, 0%, 3%)
LABlab(59.1 66.5 -59.3)
LCHlch(59.1 89.1 318.3)
OKLCHoklch(0.676 0.233 314.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca5df8 on white: 3.26:1
AA ✗ fail · AA-large · AAA
Aa
#ca5df8 on black: 6.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green36.5%
Blue97.3%

CMYK percentages

Cyan18.5%
Magenta62.5%
Yellow0.0%
Key (black)2.7%

Color previews

#ca5df8 text on a black background

contrast 6.43:1

Card sample

#ca5df8 text on a white background

contrast 3.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ca5df8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca5df8 in the Color Lab