Skip to content

#cb5fef

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

RGB
203, 95, 239
HSL
285°, 82%, 66%
CMYK
15, 60, 0, 6
Luminance
0.2711

Every format

HEX#cb5fef
RGBrgb(203, 95, 239)
HSLhsl(285, 82%, 66%)
CMYKcmyk(15%, 60%, 0%, 6%)
LABlab(59.1 64.0 -54.4)
LCHlch(59.1 84.0 319.7)
OKLCHoklch(0.675 0.222 316.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red79.6%
Green37.3%
Blue93.7%

CMYK percentages

Cyan15.1%
Magenta60.3%
Yellow0.0%
Key (black)6.3%

Color previews

#cb5fef text on a black background

contrast 6.42:1

Card sample

#cb5fef text on a white background

contrast 3.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(203, 95, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 95, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cb5fef;
background: linear-gradient(135deg, #cb5fef, #EF5FB3);

Monochromatic scale

Palettes built from #cb5fef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb5fef in the Color Lab