Skip to content

#cb4def

a balanced, electric violet · warm · closest name: magenta

RGB
203, 77, 239
HSL
287°, 84%, 62%
CMYK
15, 68, 0, 6
Luminance
0.2424

Every format

HEX#cb4def
RGBrgb(203, 77, 239)
HSLhsl(287, 84%, 62%)
CMYKcmyk(15%, 68%, 0%, 6%)
LABlab(56.3 71.7 -58.8)
LCHlch(56.3 92.7 320.6)
OKLCHoklch(0.655 0.245 317.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb4def on white: 3.59:1
AA ✗ fail · AA-large · AAA
Aa
#cb4def on black: 5.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green30.2%
Blue93.7%

CMYK percentages

Cyan15.1%
Magenta67.8%
Yellow0.0%
Key (black)6.3%

Color previews

#cb4def text on a black background

contrast 5.85:1

Card sample

#cb4def text on a white background

contrast 3.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb4def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb4def in the Color Lab