Skip to content

#cb2def

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

RGB
203, 45, 239
HSL
289°, 86%, 56%
CMYK
15, 81, 0, 6
Luminance
0.2081

Every format

HEX#cb2def
RGBrgb(203, 45, 239)
HSLhsl(289, 86%, 56%)
CMYKcmyk(15%, 81%, 0%, 6%)
LABlab(52.7 82.0 -64.5)
LCHlch(52.7 104.3 321.8)
OKLCHoklch(0.629 0.277 319.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb2def on white: 4.07:1
AA ✗ fail · AA-large · AAA
Aa
#cb2def on black: 5.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green17.6%
Blue93.7%

CMYK percentages

Cyan15.1%
Magenta81.2%
Yellow0.0%
Key (black)6.3%

Color previews

#cb2def text on a black background

contrast 5.16:1

Card sample

#cb2def text on a white background

contrast 4.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb2def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb2def in the Color Lab