Skip to content

#cb0df2

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

RGB
203, 13, 242
HSL
290°, 90%, 50%
CMYK
16, 95, 0, 5
Luminance
0.1940

Every format

HEX#cb0df2
RGBrgb(203, 13, 242)
HSLhsl(290, 90%, 50%)
CMYKcmyk(16%, 95%, 0%, 5%)
LABlab(51.1 87.7 -68.8)
LCHlch(51.1 111.5 321.9)
OKLCHoklch(0.619 0.295 318.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb0df2 on white: 4.30:1
AA ✗ fail · AA-large · AAA
Aa
#cb0df2 on black: 4.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green5.1%
Blue94.9%

CMYK percentages

Cyan16.1%
Magenta94.6%
Yellow0.0%
Key (black)5.1%

Color previews

#cb0df2 text on a black background

contrast 4.88:1

Card sample

#cb0df2 text on a white background

contrast 4.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb0df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb0df2 in the Color Lab