Skip to content

#cb2eee

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

RGB
203, 46, 238
HSL
289°, 85%, 56%
CMYK
15, 81, 0, 7
Luminance
0.2082

Every format

HEX#cb2eee
RGBrgb(203, 46, 238)
HSLhsl(289, 85%, 56%)
CMYKcmyk(15%, 81%, 0%, 7%)
LABlab(52.8 81.5 -64.0)
LCHlch(52.8 103.6 321.9)
OKLCHoklch(0.629 0.275 319.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red79.6%
Green18.0%
Blue93.3%

CMYK percentages

Cyan14.7%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#cb2eee text on a black background

contrast 5.16:1

Card sample

#cb2eee text on a white background

contrast 4.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb2eee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb2eee in the Color Lab