Skip to content

#cb1dff

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

RGB
203, 29, 255
HSL
286°, 100%, 56%
CMYK
20, 89, 0, 0
Luminance
0.2080

Every format

HEX#cb1dff
RGBrgb(203, 29, 255)
HSLhsl(286, 100%, 56%)
CMYKcmyk(20%, 89%, 0%, 0%)
LABlab(52.7 87.9 -73.5)
LCHlch(52.7 114.6 320.1)
OKLCHoklch(0.633 0.298 315.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red79.6%
Green11.4%
Blue100.0%

CMYK percentages

Cyan20.4%
Magenta88.6%
Yellow0.0%
Key (black)0.0%

Color previews

#cb1dff text on a black background

contrast 5.16:1

Card sample

#cb1dff text on a white background

contrast 4.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb1dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb1dff in the Color Lab