Skip to content

#cb5def

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

RGB
203, 93, 239
HSL
285°, 82%, 65%
CMYK
15, 61, 0, 6
Luminance
0.2676

Every format

HEX#cb5def
RGBrgb(203, 93, 239)
HSLhsl(285, 82%, 65%)
CMYKcmyk(15%, 61%, 0%, 6%)
LABlab(58.8 64.9 -54.9)
LCHlch(58.8 85.0 319.8)
OKLCHoklch(0.672 0.225 316.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb5def on white: 3.31:1
AA ✗ fail · AA-large · AAA
Aa
#cb5def on black: 6.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green36.5%
Blue93.7%

CMYK percentages

Cyan15.1%
Magenta61.1%
Yellow0.0%
Key (black)6.3%

Color previews

#cb5def text on a black background

contrast 6.35:1

Card sample

#cb5def text on a white background

contrast 3.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb5def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb5def in the Color Lab